Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. bool CBlock::CheckBlock() const
  2. {
  3. // These are checks that are independent of context
  4. // that can be verified before saving an orphan block.
  5.  
  6. // Size limits
  7. if (vtx.empty() || vtx.size() > MAX_SIZE || ::GetSerializeSize(*this, SER_DISK) > MAX_SIZE)
  8. return error("CheckBlock() : size limits failed");
  9. ...
  10. }
  11.  
  12. static const unsigned int MAX_BLOCK_SIZE = 1000000;
  13.  
  14. if (nBlockSize + nTxSize >= MAX_BLOCK_SIZE - 10000)
  15. continue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement