nanocurrency / protocol

Implementation independent content related to the Nano protocol
BSD 2-Clause "Simplified" License
36 stars 10 forks source link

Add BlockState2 #19

Open wezrule opened 3 years ago

wezrule commented 3 years ago

Will need updating once state blocks v2 are in (https://github.com/nanocurrency/nano-node/pull/2899). 8 more bytes needed, which are located right before the signature field: Height (6 bytes) Version (1 byte) Flags (1 byte)

rotilho commented 3 years ago

Aren't signer and link interpretation part of the block? It would be great to have both of them so the node can validate the transaction in early stages

wezrule commented 3 years ago

Yes Flags contains those things (and whether the block is an upgrade)