What is Nostr?
Gavin Andresen [ARCHIVE] /
npub1s4lā€¦44kw
2023-06-07 02:26:42
in reply to nevent1qā€¦l2qn

Gavin Andresen [ARCHIVE] on Nostr: šŸ“… Original date posted:2011-09-15 šŸ—’ļø Summary of this message: Gavin Andresen ...

šŸ“… Original date posted:2011-09-15
šŸ—’ļø Summary of this message: Gavin Andresen plans to simplify the banning system for nodes accumulating more than -banscore misbehavior points and add a bad signature banning offense.
šŸ“ Original message:Thanks Mike, that's exactly the kind of detailed review I was looking
for. I think you're right an all points.

I'll simplify: I'll add a -banscore option (default 100), and if a
node accumulates more than -banscore misbehavior points it'll get
dropped and banned for -bantime (default 60*60*24) seconds.

I'll make bad signatures a banning offense, and I'll remove the
number-of-sigops and non-standard-transaction penalties.

I used a mutable field with const setter to avoid modifying a bunch of
methods to take non-const blocks/transactions instead of const; I
think it is appropriate because a block/transaction's DoS score is
really meta-data and not part of it's state.

I'll make GetTime() unit-test friendly as you suggest.

--
--
Gavin Andresen
Author Public Key
npub1s4lj77xuzcu7wy04afcr487f0r3za0f8n2775xrpkld2sv639mjqsd44kw