add size fields for following var len fields (#29)

This commit is contained in:
Nathan Marley 2018-11-10 13:54:08 -02:00 committed by GitHub
parent 19c4993976
commit c5b35976ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,9 @@ The `MNLISTDIFF` message contains a serialized object with the following structu
| merkleFlagsCount | compactSize uint | 1-9 | Number of Merkle flag bytes | | merkleFlagsCount | compactSize uint | 1-9 | Number of Merkle flag bytes |
| merkleFlags | uint8_t[] | variable | Merkle flag bits, packed per 8 in a byte, least significant bit first | | merkleFlags | uint8_t[] | variable | Merkle flag bits, packed per 8 in a byte, least significant bit first |
| cbTx | CTransaction | variable | The fully serialized coinbase transaction of blockHash | | cbTx | CTransaction | variable | The fully serialized coinbase transaction of blockHash |
| deletedMNcount | compactSize uint | 1-9 | Number of ProRegTx hashes which were deleted after baseBlockHash |
| deletedMNs | uint256[] | variable | A list of ProRegTx hashes for masternode which were deleted after baseBlockHash | | deletedMNs | uint256[] | variable | A list of ProRegTx hashes for masternode which were deleted after baseBlockHash |
| mnCount | compactSize uint | 1-9 | Number of SML entries which were added or updated since baseBlockHash |
| mnList | SMLEntry[] | variable | The list of SML entries which were added or updated since baseBlockHash | | mnList | SMLEntry[] | variable | The list of SML entries which were added or updated since baseBlockHash |
## Tracking/Updating and verifying masternode lists based on MNLISTDIFF ## Tracking/Updating and verifying masternode lists based on MNLISTDIFF