rusty-kaspa icon indicating copy to clipboard operation
rusty-kaspa copied to clipboard

Virtual processor - Part 2

Open someone235 opened this issue 2 years ago • 1 comments

  1. Change Block to have Arc<Header> and pass block around w/o an arc
  2. Switch BlueWorkType to Uint192
  3. Consider the DAA window average optimization by Tiram
  4. Remove fee param from Tx output
  5. Remove many Arcs from within Tx structs
  6. Use BlockHashMap/BlockHashSet type defs where ever possible
  7. Add prefix support to logs trace macro and perhaps add debug/info macros
  8. 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
  9. Apply DbWriter as a generalization of Batch writing and use it to cleanup remaining caching.rs code duplications
  10. Add genesis block to config
  11. Take cache sizes from kaspa-go + give it more thought
  12. Rename rust files with a single convention

someone235 avatar Oct 19 '22 16:10 someone235

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)

michaelsutton avatar Oct 19 '22 21:10 michaelsutton