Closed jcalfee closed 6 years ago
ref_block_prefix
is the correct type. It's the lower 32 bits of the block ID. See comment at https://github.com/EOSIO/eos/blob/cc9decff9428b261900a5b89ddf3f51d2c39321a/libraries/chain/include/eosio/chain/transaction.hpp#L33
get_block nnn returns:
ref_block_prefix: '8696056297333876148'
But ref_block_prefix's type in the code is
uint32_t
: https://github.com/EOSIO/eos/blob/master/contracts/eosiolib/transaction.hpp#L39Kevin explained that this should be a uint64_t..
By the way, for numbers lager than 53 bits, using a string is a work-around for the javascript 53 bit limit ensuring the parser does not overflow..