Luke-Jr [ARCHIVE] on Nostr: 📅 Original date posted:2011-09-26 🗒️ Summary of this message: Code snippets ...
📅 Original date posted:2011-09-26
🗒️ Summary of this message: Code snippets show potential denial-of-service (DoS) attacks on Bitcoin nodes, but caution is advised to avoid false positives and legitimate transactions/blocks being affected.
📝 Original message:+ return DoS(10, error("AcceptToMemoryPool() : transaction with out-of-
bounds SigOpCount"));
+ return DoS(10, error("ConnectInputs() : tried to
spend coinbase at depth %d", pindexBlock->nHeight - pindex->nHeight));
+ return DoS(10, error("AcceptBlock() : prev block not found"));
These shouldn't be "DoS"'d, or else you open a new DoS when nodes legitimately
relay such transactions/blocks.
Published at
2023-06-07 02:29:09Event JSON
{
"id": "ca53b085c62e86759ae20b295761d14f5861b6f18993aed296e97d68c941aacf",
"pubkey": "6ac6a519b554d8ff726a301e3daec0b489f443793778feccc6ea7a536f7354f1",
"created_at": 1686104949,
"kind": 1,
"tags": [
[
"e",
"d6d0027f983f7cf39b7bceeaefc2da4fd33248e5b23365297769f7aaa959dad8",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📅 Original date posted:2011-09-26\n🗒️ Summary of this message: Code snippets show potential denial-of-service (DoS) attacks on Bitcoin nodes, but caution is advised to avoid false positives and legitimate transactions/blocks being affected.\n📝 Original message:+ return DoS(10, error(\"AcceptToMemoryPool() : transaction with out-of-\nbounds SigOpCount\"));\n+ return DoS(10, error(\"ConnectInputs() : tried to \nspend coinbase at depth %d\", pindexBlock-\u003enHeight - pindex-\u003enHeight));\n+ return DoS(10, error(\"AcceptBlock() : prev block not found\"));\n\nThese shouldn't be \"DoS\"'d, or else you open a new DoS when nodes legitimately \nrelay such transactions/blocks.",
"sig": "9405eede19d4e74c38b83adc5fed3b8a6997faaa2e5afebb93c46878412301febf717fb54d6a3e1bdb828e7d530ccbc2d65ea5e72bf87855863f7abc135dd71e"
}