helium / blockchain-core

Apache License 2.0
213 stars 85 forks source link

Fix diff_test and test code cleanup #1350

Open marcsugiyama opened 2 years ago

marcsugiyama commented 2 years ago

diff_test calls blockchain_gossip_handler:add_block with the Swarm instead of the SwarmTID which results in a badarg from ets. This PR changes the call to pass the table id instead, fixing the test error.

This PR also includes some code cleanup as suggested by @xandkar .