Skip to content

backport: bitcoin#18875,11413,16946,17824,18601,18585,20271,19871,20039 - #5360

Merged
PastaPastaPasta merged 9 commits into
dashpay:developfrom
vijaydasmp:21_17
Jul 21, 2023
Merged

PastaPastaPasta merged 9 commits into
dashpay:developfrom
vijaydasmp:21_17

Conversation

@vijaydasmp

@vijaydasmp vijaydasmp commented May 3, 2023 •

Copy link
Copy Markdown

No description provided.

@github-actions

github-actions Bot commented May 3, 2023

Copy link
Copy Markdown

This pull request has conflicts, please rebase.

@vijaydasmp
vijaydasmp force-pushed the 21_17 branch 3 times, most recently from f64eaf8 to c5dba47 Compare May 3, 2023 15:38
@github-actions

Copy link
Copy Markdown

This pull request has conflicts, please rebase.

@vijaydasmp vijaydasmp changed the title Backport backport: bitcoin#18875,19316,11413,14582,16946,17824,18601,18216,18585,18628,18638,18515,18481,18544,18672,18726 Jul 2, 2023
@vijaydasmp
vijaydasmp force-pushed the 21_17 branch 8 times, most recently from c590eea to 07a8298 Compare July 9, 2023 03:59
@vijaydasmp vijaydasmp changed the title backport: bitcoin#18875,19316,11413,14582,16946,17824,18601,18216,18585,18628,18638,18515,18481,18544,18672,18726 backport: bitcoin#18875,11413,14582,16946,17824,18601,18216,18585,18628,,18481,18544,18672,18726 Jul 9, 2023
@vijaydasmp vijaydasmp changed the title backport: bitcoin#18875,11413,14582,16946,17824,18601,18216,18585,18628,,18481,18544,18672,18726 backport: bitcoin#18875,11413,14582,16946,17824,18601,18216,18585,18628,18481,18544,18672,18726 Jul 9, 2023
@vijaydasmp
vijaydasmp force-pushed the 21_17 branch 7 times, most recently from b39e95d to 3296206 Compare July 10, 2023 12:36
Comment thread doc/release-notes-11413.md Resolved
Comment thread src/policy/feerate.h Resolved
Comment thread src/wallet/rpcwallet.cpp Resolved
Comment thread src/policy/feerate.h Resolved
Comment thread src/wallet/rpcwallet.cpp Resolved
Comment thread test/functional/wallet_basic.py Resolved
Comment thread depends/README.md Resolved
Comment thread test/functional/mempool_accept.py Resolved
@UdjinM6

UdjinM6 commented Jul 20, 2023

Copy link
Copy Markdown

pls see 662d1df

@vijaydasmp
vijaydasmp force-pushed the 21_17 branch 2 times, most recently from 1faca47 to f22f56e Compare July 21, 2023 02:47
@vijaydasmp vijaydasmp changed the title backport: bitcoin#18875,11413,14582,16946,17824,18601,18216,18585,20271,19871,20039,19124 backport: bitcoin#18875,11413,16946,17824,18601,18216,18585,20271,19871,20039,19124 Jul 21, 2023
@vijaydasmp
vijaydasmp requested a review from UdjinM6 July 21, 2023 04:35
@vijaydasmp
vijaydasmp marked this pull request as draft July 21, 2023 04:41
@vijaydasmp
vijaydasmp marked this pull request as ready for review July 21, 2023 04:47

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 added this to the 20 milestone Jul 21, 2023
@UdjinM6 UdjinM6 added the RPC Some notable changes to RPC params/behaviour/descriptions label Jul 21, 2023

@knst knst left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

utACK

Although, need to remove 18216 and 19124 from title of PR

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

utACK for merging via merge commit

@PastaPastaPasta PastaPastaPasta changed the title backport: bitcoin#18875,11413,16946,17824,18601,18216,18585,20271,19871,20039,19124 backport: bitcoin#18875,11413,16946,17824,18601,18585,20271,19871,20039 Jul 21, 2023
MarcoFalke and others added 9 commits July 21, 2023 16:03
fab860a fuzz: Stop nodes in process_message* fuzzers (MarcoFalke)
6666c82 fuzz: Give CNode ownership to ConnmanTestMsg in process_message fuzz harness (MarcoFalke)

Pull request description:

  Background is that I saw an integer overflow in net_processing

  ```
  #30629113	REDUCE cov: 25793 ft: 142917 corp: 3421/2417Kb lim: 4096 exec/s: 89 rss: 614Mb L: 1719/4096 MS: 1 EraseBytes-
  net_processing.cpp:977:25: runtime error: signed integer overflow: 2147483624 + 100 cannot be represented in type 'int'
  SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior net_processing.cpp:977:25 in
  net_processing.cpp:985:9: runtime error: signed integer overflow: -2147483572 - 100 cannot be represented in type 'int'
  SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior net_processing.cpp:985:9 in
  ```

  Telling from the line numbers, it looks like `nMisbehavior` wrapped around.

  Fix that by calling `StopNodes` after each exec, which should clear the node state and thus `nMisbehavior`.

ACKs for top commit:
  practicalswift:
    ACK fab860a

Tree-SHA512: 891c081d5843565d891aec028b6c27ef3fa39bc40ae78238e81d8f784b4d4b49cb870998574725a5159dd03aeeb2e0b9bc3d3bb51d57d1231ef42e3394b2d639
…cit feerate option

25dac9f doc: add release notes for explicit fee estimators and bumpfee change (Karl-Johan Alm)
05227a3 tests for bumpfee / estimate_modes (Karl-Johan Alm)
3404c1b policy: optional FeeEstimateMode param to CFeeRate::ToString (Karl-Johan Alm)
6fcf448 rpc/wallet: add two explicit modes to estimate_mode (Karl-Johan Alm)
b188d80 MOVEONLY: Make FeeEstimateMode available to CFeeRate (Karl-Johan Alm)
5d1a411 fees: add FeeModes doc helper function (Karl-Johan Alm)
91f6d2b rpc/wallet: add conf_target as alias to confTarget in bumpfee (Karl-Johan Alm)
69158b4 added CURRENCY_ATOM to express minimum indivisible unit (Karl-Johan Alm)

Pull request description:

  This lets users pick their own fees when using `sendtoaddress`/`sendmany` if they prefer this over the estimators.

ACKs for top commit:
  Sjors:
    re-utACK 25dac9f: rebased, more fancy C++,
  jonatack:
    ACK 25dac9f I think this should be merged after all this time, even though it looks to me like there are needed follow-ups, fixes and test coverage to be added (see further down), which I don't mind helping out with, if wanted.
  fjahr:
    Code review ACK 25dac9f

Tree-SHA512: f31177e6cabf3187a43cdfe93477144f8e8385c7344613743cbbd16e8490d53ff5144aec7b9de6c9a65eb855b55e0f99d7f164dee4b6bf3cfea4dce51cf11d33
…keys

d67055e Upgrade or rewrite encrypted key checksums (Andrew Chow)
c9a9ddb Set fDecryptionThoroughlyChecked based on whether crypted key checksums are valid (Andrew Chow)
a8334f7 Read and write a checksum for encrypted keys (Andrew Chow)

Pull request description:

  Adds a checksum to the encrypted key record in the wallet database so that encrypted keys can be checked for corruption on wallet loading, in the same way that unencrypted keys are. This allows for us to skip the full decryption of keys upon the first unlocking of the wallet in that session as any key corruption will have already been detected. The checksum is just the double SHA256 of the encrypted key and it is appended to the record after the encrypted key itself.

  This is backwards compatible as old wallets will be able to read the encrypted key and ignore that there is more data in the stream. Additionally, old wallets will be upgraded upon their first unlocking (so that key decryption is checked before we commit to a checksum of the encrypted key) and a wallet flag set indicating that. The presence of the wallet flag lets us skip the full decryption as if `fDecryptionThoroughlyChecked` were true.

  This does mean that the first time an old wallet is unlocked in a new version will take much longer, but subsequent unlocks will be instantaneous. Furthermore, corruption will be detected upon loading rather than on trying to send so wallet corruption will be detected sooner.

  Fixes bitcoin#12423

ACKs for top commit:
  laanwj:
    code review ACK d67055e
  jonatack:
    Code review ACK d67055e
  meshcollider:
    Code review ACK d67055e

Tree-SHA512: d5c1c10cfcb5db9e10dcf2326423565a9f499290b81f3155ec72254ed5bd7491e2ff5c50e98590eb07842c20d7797b4efa1c3475bae64971d500aad3b4e711d4
…election

a2324e4 test: Improve naming and logging of avoid_reuse tests (Fabian Jahr)
1abbdac wallet: Prefer full destination groups in coin selection (Fabian Jahr)

Pull request description:

  Fixes bitcoin#17603 (together with bitcoin#17843)

  In the case of destination groups of >10 outputs existing in a wallet with `avoid_reuse` enabled, the grouping algorithm is adding left-over outputs as an "incomplete" group to the list of groups even when a full group has already been added. This leads to the strange behavior that if there are >10 outputs for a destination the transaction spending from that will effectively use `len(outputs) % 10` as inputs for that transaction.

  From the original PR and the code comment I understand the correct behavior should be the usage of 10 outputs. I opted for minimal changes in the current code although there maybe optimizations possible for cases with >20 outputs on a destination this sounds like too much of an edge case right now.

ACKs for top commit:
  jonatack:
    Re-ACK a2324e4
  achow101:
    ACK a2324e4
  kallewoof:
    ACK a2324e4
  meshcollider:
    Tested ACK a2324e4 (verified the new test fails on master without this change)

Tree-SHA512: 4743779c5d469fcd16df5baf166024b1d3c8eaca151df1e8281b71df62b29541cf7bfee3f8ab48d83e3b34c9256e53fd38a7b146a54c79f9caa44cce3636971a
…let reference

fc289b7 wallet: Refactor WalletRescanReserver to use wallet reference (João Barbosa)

Pull request description:

  Simple refactor to `WalletRescanReserver` to use wallet reference instead of pointer.

  Complements bitcoin#18259.

ACKs for top commit:
  MarcoFalke:
    ACK fc289b7

Tree-SHA512: b03e33f2d9df2870436aa3284137fd022dd89ea96a1b170fa27f8685ad4f986e6c4ba5975a84966c30d18430a4014d7d8740a1dff2f985c9ef8226ed18e69db9
… 3.0+)

0956e46 test: use zero-argument super() shortcut (Python 3.0+) (Sebastian Falbesoner)

Pull request description:

  This mini-PR replaces all calls to `super(...)` with arguments with the zero-argument shortcut `super()` where applicable. See [PEP 3135](https://www.python.org/dev/peps/pep-3135/#specification):

  > The new syntax:
  >
  >     super()
  >
  > is equivalent to:
  >
  >     super(__class__, <firstarg>)
  >
  > where __class__ is the class that the method was defined in, and <firstarg> is
  > the first parameter of the method (normally self for instance methods, and cls
  > for class methods).

ACKs for top commit:
  fanquake:
    ACK 0956e46

Tree-SHA512: 4ac66fe7ab2be2e8a514e5fcfc41dbb298f21b23ebb7b7b0310d704b0b3cef8adf287a8d80346d1ea9418998c597b4f0ff1f66148d0d806bb43db6607e0fe1cf
fab9453 doc: Document that wallet salvage is experimental (MarcoFalke)

Pull request description:

  See bitcoin#20151

ACKs for top commit:
  practicalswift:
    ACK fab9453: user safety first
  hebasto:
    ACK fab9453, maybe capitalize into "WARNING"?
  meshcollider:
    Trivial ACK fab9453

Tree-SHA512: 94912c491facc485293e4333066057933d706d84c7172f615296e7ba998c583c8bd07e751e6f00cd6576e7791007ace321f959181f7bf6a4e15e10d7ec8a1b7e
…bound block-relay peers

d769254 [doc] Clarify semantic of peer's m_protect w.r.t to outbound eviction logics (Antoine Riard)
ac71fe9 [doc] Clarify scope of eviction protection of outbound block-relay peers (Antoine Riard)

Pull request description:

  Block-relay-only peers were introduced by bitcoin#15759. According to its
  author, it was intented to make them only immune to outbound peer
  rotation-based eviction and not from all eviction as modified comment
  leans to think of.

  Clearly indicate that outbound block-relay peers aren't protected
  from eviction by the bad/lagging chain logic.

  Fix bitcoin#19863

ACKs for top commit:
  naumenkogs:
    ACK d769254
  jonatack:
    ACK d769254

Tree-SHA512: 597fbd62838a6e39276024165b11514cad20a2e9d33cf9202d261cbadcb62b2df427c858e0cb57e585840d4c1d4600104aa53916bb868541f2580e4eed9b4b52
5aadd4b Convert amounts from float to decimal (Prayank)

Pull request description:

  > decimal is preferred in accounting applications

  https://docs.python.org/3.8/library/decimal.html

  Decimal type saves an exact value so better than using float.

  ~~3 variables declared with type as 'Decimal' in [test/functional/mempool_accept.py](https://github.com/bitcoin/bitcoin/blob/master/test/functional/mempool_accept.py): fee, fee_expected, output_amount~~

  ~~Not required to convert to string anymore for using the above variables as decimal~~

  + fee, fee_expected, output_amount
  ~~+ 8 decimal places~~
  + Using value of coin['amount'] as decimal and removed 'int'
  + Removed unnecessary parentheses
  + Remove str() and use quotes

  Fixes bitcoin#20011

ACKs for top commit:
  guggero:
    ACK 5aadd4b

Tree-SHA512: 5877cf3837e5b65bec0fc8909de141a720bfa02a747513e21d20f3c41ec0cfecc524d2c347a96596b0a1a97900da2acf08b799f26b11d537e4dcddc6ce45f38e
@PastaPastaPasta
PastaPastaPasta merged commit b3bdcd0 into dashpay:develop Jul 21, 2023
thephez added a commit to thephez/docs-core that referenced this pull request Sep 28, 2023
thephez added a commit to dashpay/docs-core that referenced this pull request Oct 2, 2023
* docs(rpc): minor update to unloadwallet description

* style: update v20 rpc highlight to be consistent

* docs(rpc): remove gobject vote-conf

* style: update warning on removed rpc page

* docs(rpc): fix table

* docs(rpc): update gobject submit

No longer supports triggers (dashpay/dash#5552)

* docs(rpc): update fundraw, sendmany, sendtoaddr, and walletcreatefundedpsbt

Changes from dashpay/dash#5360

* chore(rpc): update getwalletinfo

* docs(rpc): update quick ref version notes

* docs(rpc): update getgovernanceinfo

Related to dashpay/dash#5581
thephez added a commit to dashpay/docs-core that referenced this pull request Nov 15, 2023
* docs(rpc): minor update to unloadwallet description

* style: update v20 rpc highlight to be consistent

* docs(rpc): remove gobject vote-conf

* style: update warning on removed rpc page

* docs(rpc): fix table

* docs(rpc): update gobject submit

No longer supports triggers (dashpay/dash#5552)

* docs(rpc): update fundraw, sendmany, sendtoaddr, and walletcreatefundedpsbt

Changes from dashpay/dash#5360

* chore(rpc): update getwalletinfo

* docs(rpc): update quick ref version notes

* docs(rpc): update getgovernanceinfo

Related to dashpay/dash#5581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RPC Some notable changes to RPC params/behaviour/descriptions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants