rusty-kaspa
rusty-kaspa copied to clipboard
Virtual processor - Part 2
- Change Block to have
Arc<Header>
and pass block around w/o an arc - Switch
BlueWorkType
to Uint192 - Consider the DAA window average optimization by Tiram
- Remove fee param from Tx output
- Remove many Arcs from within Tx structs
- Use BlockHashMap/BlockHashSet type defs where ever possible
- Add prefix support to logs trace macro and perhaps add debug/info macros
- Consider switching from saving the mergeset DAA blocks to saving the complementary set, i.e. the mergeset non-DAA blocks. On average this means moving from saving O(mergeset) to 0
- Apply DbWriter as a generalization of Batch writing and use it to cleanup remaining caching.rs code duplications
- Add genesis block to config
- Take cache sizes from kaspa-go + give it more thought
- Rename rust files with a single convention
Pending todos for completing the virtual processor implementation:
- pick virtual parents from body tips according to pruning rules
- check finality violation
- handle disqualified chain loop
- call pruning point move
- implement coinbase validation
- acceptance data format
- virtual utxo-set ownership semantics
- basic build block template support (only header and coinbase, w/o mempool txs)