farcaster-node icon indicating copy to clipboard operation
farcaster-node copied to clipboard

artificially racing Refund and Punish confuses syncer (or just full node?)

Open zkao opened this issue 4 years ago • 3 comments

node alice

2021-12-04T17:05:44Z INFO  farcaster_node::swapd::runtime] tx Cancel final: 0 confirmations
[2021-12-04T17:05:44Z INFO  farcaster_node::swapd::runtime] Broadcasting Punish tx 3180a9a31eccdc762f0389686ac0ed5a2ed869c5cbee5003443a12bc5886f401
[2021-12-04T17:05:44Z INFO  farcaster_node::syncerd::bitcoin_syncer] successfully broadcasted tx 3180a9a31eccdc762f0389686ac0ed5a2ed869c5cbee5003443a12bc5886f401
[2021-12-04T17:05:54Z INFO  farcaster_node::swapd::runtime] tx Refund on mempool but hasn't been mined
[2021-12-04T17:05:54Z INFO  farcaster_node::swapd::runtime] tx Refund final: 0 confirmations

node bob

[2021-12-04T17:05:40Z INFO  farcaster_node::swapd::runtime] Watching tx AccLock f22b45d8ddb6fd5b776f6e4a0f951b2829d11db7e0050004f0cf7321a9be1575 with id TaskId(7)
[2021-12-04T17:05:42Z INFO  farcaster_node::swapd::runtime] tx AccLock on mempool but hasn't been mined
[2021-12-04T17:05:44Z INFO  farcaster_node::swapd::runtime] tx Cancel on mempool but hasn't been mined
[2021-12-04T17:05:44Z INFO  farcaster_node::swapd::runtime] tx Cancel final: 0 confirmations
[2021-12-04T17:05:44Z INFO  farcaster_node::swapd::runtime] Broadcasting Punish tx 3180a9a31eccdc762f0389686ac0ed5a2ed869c5cbee5003443a12bc5886f401
[2021-12-04T17:05:44Z INFO  farcaster_node::syncerd::bitcoin_syncer] successfully broadcasted tx 3180a9a31eccdc762f0389686ac0ed5a2ed869c5cbee5003443a12bc5886f401
[2021-12-04T17:05:54Z INFO  farcaster_node::swapd::runtime] tx Refund on mempool but hasn't been mined
[2021-12-04T17:05:54Z INFO  farcaster_node::swapd::runtime] tx Refund final: 0 confirmations

zkao avatar Dec 04 '21 17:12 zkao

I've observed this as well today! I think the syncer is mis-reporting the successful broadcast of a tx. Do debug level logs reveal more?

sedited avatar Dec 04 '21 17:12 sedited

How is it possible that Alice and Bob try to punish? Does the Broadcasting Punish tx ... log entry mean something else

h4sh3d avatar Dec 04 '21 17:12 h4sh3d

@h4sh3d you're right, but i dont manage to reproduce that log, so i probably messed up on the editting

zkao avatar Dec 04 '21 17:12 zkao