mana-ethereum / mana

Ethereum full node implementation written in Elixir.
Other
274 stars 47 forks source link

handle not found blocks in RPC client #746

Closed ayrat555 closed 5 years ago

ayrat555 commented 5 years ago

Currently, the sync is failing when a block is not found using RPC client

(BadMapError) expected a map, got: nil  
    (elixir) lib/map.ex:437: Map.get(nil, "hash", nil)
    lib/block_provider/rpc.ex:185: CLI.BlockProvider.RPC.get/4
    lib/block_provider/rpc.ex:71: CLI.BlockProvider.RPC.get_block/2
    lib/sync.ex:45: CLI.Sync.sync_new_blocks/8