tree checksum vpatch file split hunks
all signers: mod6 asciilifeform
antecedents: mod6_whogaveblox
press order:
patch:
(1877 . 6)(1877 . 9)
5 return error("message getdata size() = %d", vInv.size());
6 }
7
8 // Counter of bytes sent in response to this 'getdata' command
9 unsigned int sentBytes = 0;
10
11 BOOST_FOREACH(const CInv& inv, vInv)
12 {
13 if (fShutdown)
(1891 . 6)(1894 . 17)
15 {
16 CBlock block;
17 block.ReadFromDisk((*mi).second);
18
19 // Add block's size to sentBytes, and determine if reached limit
20 sentBytes += block.GetSerializeSize(SER_NETWORK);
21 if (sentBytes >= SendBufferSize())
22 {
23 printf("getdata (block) may not transmit %u bytes\n", sentBytes);
24 pfrom->Misbehaving(20);
25 break;
26 }
27
28 // Limit not reached, so permitted to send block
29 pfrom->PushMessage("block", block);
30
31 // Trigger them to send a getblocks request for the next batch of inventory