Luke-Jr [ARCHIVE] on Nostr: 📅 Original date posted:2013-10-27 📝 Original message:On Sunday, October 27, ...
📅 Original date posted:2013-10-27
📝 Original message:On Sunday, October 27, 2013 2:32:57 PM Mike Hearn wrote:
> Currently bitcoinj gets a small but steady stream of bug reports of the form
> "my transaction did not propagate". It's flaky because the library picks one
> peer to send the transaction to, and then watches it propagate across the
> network. But if that selected peer refuses the tx for whatever reason, that
> propagation never comes, and there's currently no timeout to make it retry
> with a different node.
Sounds like the real bug is "BitcoinJ relies on good/servant behaviour from
other nodes". Don't assume your random node isn't hostile. Handling a peer
that doesn't relay your transaction for any reason (including if they lie to
you about having done so) should be expected behaviour.
Luke
Published at
2023-06-07 15:08:09Event JSON
{
"id": "5c7081aec15823a234ca156acee0daae7a20d6cfb2a09b285b46212326336572",
"pubkey": "6ac6a519b554d8ff726a301e3daec0b489f443793778feccc6ea7a536f7354f1",
"created_at": 1686150489,
"kind": 1,
"tags": [
[
"e",
"3817326e0aa3f4776a8ff8e7526de3607739981db781c73ec645db4eafebe42c",
"",
"root"
],
[
"e",
"139b700dbf4a7a334734ee4c65166d9c2756343f73bfe400f2bcb304e80c0eea",
"",
"reply"
],
[
"p",
"f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2"
]
],
"content": "📅 Original date posted:2013-10-27\n📝 Original message:On Sunday, October 27, 2013 2:32:57 PM Mike Hearn wrote:\n\u003e Currently bitcoinj gets a small but steady stream of bug reports of the form\n\u003e \"my transaction did not propagate\". It's flaky because the library picks one\n\u003e peer to send the transaction to, and then watches it propagate across the\n\u003e network. But if that selected peer refuses the tx for whatever reason, that\n\u003e propagation never comes, and there's currently no timeout to make it retry\n\u003e with a different node.\n\nSounds like the real bug is \"BitcoinJ relies on good/servant behaviour from \nother nodes\". Don't assume your random node isn't hostile. Handling a peer \nthat doesn't relay your transaction for any reason (including if they lie to \nyou about having done so) should be expected behaviour.\n\nLuke",
"sig": "d81aaf65b5898386bf88ebb2561f71b468a593c51b34759d92cb028a81ecdb1f722c4fbd5e027deff65d72c3afa0cfd9ebe339339f59d0d84e214f5bb6310d95"
}