libbitcoin / libbitcoin-system

Bitcoin Cross-Platform C++ Development Toolkit
https://libbitcoin.info/
Other
1.3k stars 379 forks source link

Use ordered hash table (bimap) of pointers for block txs. #728

Closed evoskuil closed 5 years ago

evoskuil commented 7 years ago

This will improve validation by providing constant time lookup of outputs within a block.

Must deal properly with deserialization of an invalid block that contains duplicate transactions. Normally this is handled in validation (vs deserialization).

Expose txs via an iterator.

evoskuil commented 7 years ago

Also tx inputs and outputs.

evoskuil commented 5 years ago

Obsolete.