Skip to content

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Sep 27, 2016

Err... I somehow missed that part in #1040 /facepalm/
:)

@tgflynn
Copy link

tgflynn commented Sep 27, 2016

I wonder if it's really necessary to save this information. Why not just start with a clean slate on each startup ?

@UdjinM6
Copy link
Author

UdjinM6 commented Sep 27, 2016

That's the other part of solving issues I mentioned in #1040 - fulfilled requests should not only expire but they should also be preserved while they are not expired. We need to do that because:
a) on wallet restart you shouldn't ask same nodes for a heavy request to avoid being banned for doing so;
b) you should be able to increase dos score for some nodes that are trying to violate same rule from their side (rather than start counting from 0) and eventually ban them even after your wallet restarted.

I agree that in most cases this won't matter much (most users don't restart their wallet every few minutes or so) but I think it worth fixing to have consistent solution.

Copy link

@tgflynn tgflynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 merged commit ac9ed35 into dashpay:v0.12.1.x Sep 27, 2016
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 19, 2021
9030557 Test gArgs erroring on unknown args (Andrew Chow)
4f8704d Give an error and exit if there are unknown parameters (Andrew Chow)
174f7c8 Use a struct for arguments and nested map for categories (Andrew Chow)

Pull request description:

  Following bitcoin#13190, gArgs is aware of all of the command line arguments. This PR has gArgs check whether the arguments provided are actually valid arguments. When an unknown argument is encountered, an error is printed to stderr and the program exist.

  Since gArgs is used for everything that has command line arguments, `bitcoind`, `bitcoin-cli`, `bitcoin-qt`, `bitcoin-tx`, and `bench_bitcoin` are all effected by this change and all now have the same argument checking behavior.

  Closes dashpay#1044

Tree-SHA512: 388201319a7d6493204bb5433da47e8e6c8266882e809f6df45f86d925f1f320f2fd13edb3e57ffc6a37415dfdfc689f83929452bca224229783accb367032e7
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 24, 2021
9030557 Test gArgs erroring on unknown args (Andrew Chow)
4f8704d Give an error and exit if there are unknown parameters (Andrew Chow)
174f7c8 Use a struct for arguments and nested map for categories (Andrew Chow)

Pull request description:

  Following bitcoin#13190, gArgs is aware of all of the command line arguments. This PR has gArgs check whether the arguments provided are actually valid arguments. When an unknown argument is encountered, an error is printed to stderr and the program exist.

  Since gArgs is used for everything that has command line arguments, `bitcoind`, `bitcoin-cli`, `bitcoin-qt`, `bitcoin-tx`, and `bench_bitcoin` are all effected by this change and all now have the same argument checking behavior.

  Closes dashpay#1044

Tree-SHA512: 388201319a7d6493204bb5433da47e8e6c8266882e809f6df45f86d925f1f320f2fd13edb3e57ffc6a37415dfdfc689f83929452bca224229783accb367032e7
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 26, 2021
9030557 Test gArgs erroring on unknown args (Andrew Chow)
4f8704d Give an error and exit if there are unknown parameters (Andrew Chow)
174f7c8 Use a struct for arguments and nested map for categories (Andrew Chow)

Pull request description:

  Following bitcoin#13190, gArgs is aware of all of the command line arguments. This PR has gArgs check whether the arguments provided are actually valid arguments. When an unknown argument is encountered, an error is printed to stderr and the program exist.

  Since gArgs is used for everything that has command line arguments, `bitcoind`, `bitcoin-cli`, `bitcoin-qt`, `bitcoin-tx`, and `bench_bitcoin` are all effected by this change and all now have the same argument checking behavior.

  Closes dashpay#1044

Tree-SHA512: 388201319a7d6493204bb5433da47e8e6c8266882e809f6df45f86d925f1f320f2fd13edb3e57ffc6a37415dfdfc689f83929452bca224229783accb367032e7
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 26, 2021
9030557 Test gArgs erroring on unknown args (Andrew Chow)
4f8704d Give an error and exit if there are unknown parameters (Andrew Chow)
174f7c8 Use a struct for arguments and nested map for categories (Andrew Chow)

Pull request description:

  Following bitcoin#13190, gArgs is aware of all of the command line arguments. This PR has gArgs check whether the arguments provided are actually valid arguments. When an unknown argument is encountered, an error is printed to stderr and the program exist.

  Since gArgs is used for everything that has command line arguments, `bitcoind`, `bitcoin-cli`, `bitcoin-qt`, `bitcoin-tx`, and `bench_bitcoin` are all effected by this change and all now have the same argument checking behavior.

  Closes dashpay#1044

Tree-SHA512: 388201319a7d6493204bb5433da47e8e6c8266882e809f6df45f86d925f1f320f2fd13edb3e57ffc6a37415dfdfc689f83929452bca224229783accb367032e7
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 28, 2021
9030557 Test gArgs erroring on unknown args (Andrew Chow)
4f8704d Give an error and exit if there are unknown parameters (Andrew Chow)
174f7c8 Use a struct for arguments and nested map for categories (Andrew Chow)

Pull request description:

  Following bitcoin#13190, gArgs is aware of all of the command line arguments. This PR has gArgs check whether the arguments provided are actually valid arguments. When an unknown argument is encountered, an error is printed to stderr and the program exist.

  Since gArgs is used for everything that has command line arguments, `bitcoind`, `bitcoin-cli`, `bitcoin-qt`, `bitcoin-tx`, and `bench_bitcoin` are all effected by this change and all now have the same argument checking behavior.

  Closes dashpay#1044

Tree-SHA512: 388201319a7d6493204bb5433da47e8e6c8266882e809f6df45f86d925f1f320f2fd13edb3e57ffc6a37415dfdfc689f83929452bca224229783accb367032e7
gades pushed a commit to cosanta/cosanta-core that referenced this pull request May 1, 2022
9030557 Test gArgs erroring on unknown args (Andrew Chow)
4f8704d Give an error and exit if there are unknown parameters (Andrew Chow)
174f7c8 Use a struct for arguments and nested map for categories (Andrew Chow)

Pull request description:

  Following bitcoin#13190, gArgs is aware of all of the command line arguments. This PR has gArgs check whether the arguments provided are actually valid arguments. When an unknown argument is encountered, an error is printed to stderr and the program exist.

  Since gArgs is used for everything that has command line arguments, `bitcoind`, `bitcoin-cli`, `bitcoin-qt`, `bitcoin-tx`, and `bench_bitcoin` are all effected by this change and all now have the same argument checking behavior.

  Closes dashpay#1044

Tree-SHA512: 388201319a7d6493204bb5433da47e8e6c8266882e809f6df45f86d925f1f320f2fd13edb3e57ffc6a37415dfdfc689f83929452bca224229783accb367032e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants