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 .
diff_test
callsblockchain_gossip_handler:add_block
with the Swarm instead of the SwarmTID which results in abadarg
fromets
. 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 .