Using -minrelaytxfee or minrelaytxfee in bitcoin.conf results in:
Error: Invalid amount for -minrelaytxfee=<amount>: '0'
Using -minrelaytxfee or minrelaytxfee in bitcoin.conf results in:
Error: Invalid amount for -minrelaytxfee=<amount>: '0'
No error, it just has to be > 0, as the code checks for that condition currently.
Zero doesn't make sense here, since free transactions are handled separately. 0.00000001 does, though it's probably not an actually good value right now, as it would make it easy for someone connected to you to run you out of memory.
I asked LaserMissile to open this bug. It'd be nice if =0 carried out the user's intent, requiring =0.00000001 to mean "relay anything" isn't friendly.
(yes, setting it that low is dumb and might make you vulnerable to a DoS attack, but I think it is important to let users shoot themselves in their feet as long as it is not easy to do accidently).
PS: when fixing, be sure to test: =0 =0.0 and =0,1 (should error) and =eleven (should error).
Ah, that sounds great to me.
Just out of curiosity - can any give me a simplified explanation of the vector in which a user submitting a tx fee of one satoshi opens themselves up to DoS?
One of the commits in #9602 solves this issue.