go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.761292551Z","level":"DEBUG","msg":"Sending notification","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","method":"ledger_channel_updated","payload":{"ID":"0xf51231020dea3e86e76c108ac8b22d89eb746c787edd946ceee74716b112a3ec","Status":"Proposed","Balance":{"AssetAddress":"0x0000000000000000000000000000000000000000","Me":"0xe22ad83a0de117ba0d03d5e94eb4e0d80a69c62a","Them":"0xe6ce22afe802caf5ff7d3845cec8c736ecc8d61f","MyBalance":"0x186a0","TheirBalance":"0x186a0"}}}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.761360541Z","level":"WARN","msg":"did not find scAddr in local peers map, fetching from DHT","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","scAddr":"0xe6CE22afe802CAf5fF7d3845cec8c736ecc8d61F"}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.762445583Z","level":"DEBUG","msg":"found address in dht","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","scaddr":"0xe6CE22afe802CAf5fF7d3845cec8c736ecc8d61F","peerId":"16Uiu2HAm9QfRxbyTHpmZnn1nPmwYEkY3grene7E32btoN4Y1PQZM"}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.762545769Z","level":"DEBUG","msg":"Sent message","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","msg":{"To":"0xe6CE22","From":"0xe22AD8","PayloadSummaries":[{"ObjectiveId":"DirectFunding-0xf51231020dea3e86e76c108ac8b22d89eb746c787edd946ceee74716b112a3ec","Type":"SignedStatePayload","PayloadDataSize":830}],"ProposalSummaries":[],"Payments":[],"RejectedObjectives":[]}}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:51.061399971Z","level":"DEBUG","msg":"queueing new chainEvent","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","block-num":109}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:51.061426073Z","level":"DEBUG","msg":"event added to queue","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","updated-queue-length":1}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:57.071862451Z","level":"DEBUG","msg":"event popped from queue","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","updated-queue-length":0}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:57.072564469Z","level":"WARN","msg":"dropping event because its block is no longer in the chain (possible re-org)","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","blockNumber":109,"blockHash":"0xc828ad2c5c6213bb4d2077a92e8db2be9ead1cbfe259e54f65c75672a5529940"}
Testing against https://git.vdb.to/cerc-io/fixturenet-eth-stacks/pulls/7
Ledger channel creation never completes.
In logs for go-nitro-bob:
```
go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.761292551Z","level":"DEBUG","msg":"Sending notification","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","method":"ledger_channel_updated","payload":{"ID":"0xf51231020dea3e86e76c108ac8b22d89eb746c787edd946ceee74716b112a3ec","Status":"Proposed","Balance":{"AssetAddress":"0x0000000000000000000000000000000000000000","Me":"0xe22ad83a0de117ba0d03d5e94eb4e0d80a69c62a","Them":"0xe6ce22afe802caf5ff7d3845cec8c736ecc8d61f","MyBalance":"0x186a0","TheirBalance":"0x186a0"}}}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.761360541Z","level":"WARN","msg":"did not find scAddr in local peers map, fetching from DHT","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","scAddr":"0xe6CE22afe802CAf5fF7d3845cec8c736ecc8d61F"}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.762445583Z","level":"DEBUG","msg":"found address in dht","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","scaddr":"0xe6CE22afe802CAf5fF7d3845cec8c736ecc8d61F","peerId":"16Uiu2HAm9QfRxbyTHpmZnn1nPmwYEkY3grene7E32btoN4Y1PQZM"}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:48.762545769Z","level":"DEBUG","msg":"Sent message","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","msg":{"To":"0xe6CE22","From":"0xe22AD8","PayloadSummaries":[{"ObjectiveId":"DirectFunding-0xf51231020dea3e86e76c108ac8b22d89eb746c787edd946ceee74716b112a3ec","Type":"SignedStatePayload","PayloadDataSize":830}],"ProposalSummaries":[],"Payments":[],"RejectedObjectives":[]}}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:51.061399971Z","level":"DEBUG","msg":"queueing new chainEvent","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","block-num":109}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:51.061426073Z","level":"DEBUG","msg":"event added to queue","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","updated-queue-length":1}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:57.071862451Z","level":"DEBUG","msg":"event popped from queue","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","updated-queue-length":0}
go-nitro-bob-1 | {"time":"2024-05-22T12:22:57.072564469Z","level":"WARN","msg":"dropping event because its block is no longer in the chain (possible re-org)","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","blockNumber":109,"blockHash":"0xc828ad2c5c6213bb4d2077a92e8db2be9ead1cbfe259e54f65c75672a5529940"}
```
dboreham
self-assigned this 2024-05-22 12:31:39 +00:00
go-nitro-bob-1 | {"time":"2024-05-22T13:06:22.083515468Z","level":"WARN","msg":"dropping event because its block is no longer in the chain (possible re-org)","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","blockNumber":35,"blockHash":"0x35ebfb7e637fe796e433d010cc1e160b75336ac86306b2f296d9bbfb8da1e0ca","wrongHash":"0xa5985c2bad2048bde18fc5071b19783e319db3cf28691b2ae44473e38abd6f9e"}
Added extra logging to see the hash it expected:
```
go-nitro-bob-1 | {"time":"2024-05-22T13:06:22.083515468Z","level":"WARN","msg":"dropping event because its block is no longer in the chain (possible re-org)","address":"0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a","blockNumber":35,"blockHash":"0x35ebfb7e637fe796e433d010cc1e160b75336ac86306b2f296d9bbfb8da1e0ca","wrongHash":"0xa5985c2bad2048bde18fc5071b19783e319db3cf28691b2ae44473e38abd6f9e"}
```
This turned out to be some wire format incompatibility between new geth and old go-eth library.
Updating go-nitro to use the latest client library made the problem go away.
This turned out to be some wire format incompatibility between new geth and old go-eth library.
Updating go-nitro to use the latest client library made the problem go away.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Testing against #7
Ledger channel creation never completes.
In logs for go-nitro-bob:
Inspected a bit later, the block cited as not being on chain is present, and has the same hash as the log message above:
Added extra logging to see the hash it expected:
Queried the block subsequently and it has the expected hash:
This turned out to be some wire format incompatibility between new geth and old go-eth library.
Updating go-nitro to use the latest client library made the problem go away.