DE-labtory / it-chain

Lightweight & Customizable Block Chain
Apache License 2.0
178 stars 54 forks source link

[blockchain] fix BlockPool #856

Closed zeroFruit closed 6 years ago

zeroFruit commented 6 years ago

I think blockchain/infra/mem/block_pool.go file need fix.

Help wanted + Suggestion:

  1. remove type Block = ygg.Block
  2. blockMap map[uint64]Block => blockMap map[uint64]blockchain.DefaultBlock
  3. declare Blockpool interface to block.go so any other domain or api can reference this interface
  4. write test code!!
zeroFruit commented 6 years ago

@zeroFruit