tidy up bitswap, ledger

good catch. will open an issue and fix in an upcoming PR