bug hunting in ledger hash chain