Skip to content

Conversation

jtimon
Copy link
Contributor

@jtimon jtimon commented Aug 1, 2019

Before it was 0 by default for main and 20000 for test and regtest.
Now it is 0 by default for all chains, thus there's no need to call Params().

Also now the default for main is properly documented.

Suggestion for release notes:

-fallbackfee was 0 (disabled) by default for the main chain, but 20000 by default for the test chains. Now it is 0 by default for all chains. Testnet and regtest users will have to add fallbackfee=20000 to their configuration if they weren't setting it and they want it to keep working like before.

Should I propose them to the wiki for the release notes or only after merge?

For more context, see #16402 (comment)

@maflcko
Copy link
Member

maflcko commented Aug 1, 2019

Fine with me, but I doubt the tests are passing with this change.

@maflcko maflcko changed the title Truly decouple wallet from chainparams for -fallbackfee test: Disable -fallbackfee by default Aug 1, 2019
@maflcko maflcko added the Tests label Aug 1, 2019
@jtimon
Copy link
Contributor Author

jtimon commented Aug 1, 2019

Fine with me, but I doubt the tests are passing with this change.

Oh, right, the tests that make use of fallbackfee will need to set fallbackfee=20000 explicitly now, I'm happy to fix that, but please tell me if I miss any of the tests, specially feature_pruning,feature_dbcrash,feature_fee_estimation which seem to be the tests I forget about the most lately for some reason.

Extra thanks for the fast feedback.

@jtimon jtimon changed the title test: Disable -fallbackfee by default Wallet: Disable -fallbackfee by default Aug 1, 2019
@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 1, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #16771 (Chainparams: Wallet: Decouple DefaultFallbackfee() from IsTestChain() by jtimon)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@jtimon jtimon force-pushed the b19-true-wallet-no-chainparams branch from d754933 to e29978d Compare August 1, 2019 23:43
@jtimon
Copy link
Contributor Author

jtimon commented Aug 2, 2019

Added 1 commit to document current failures and one failed attempt to fix all of them at once.
I'm not going to continue for todat, sorry,

@promag
Copy link
Contributor

promag commented Aug 6, 2019

Concept ACK. For now fallback fee could be set for all tests IMO, unless setting explicitly in each tests results in a short change.

@jtimon jtimon force-pushed the b19-true-wallet-no-chainparams branch from 6e26e20 to 3cc1a7c Compare August 7, 2019 02:34
@jtimon
Copy link
Contributor Author

jtimon commented Aug 7, 2019

Alright, setting it up for all tests is easier, I guess, not a strong opinion.
Rebased, squashed and removed the TODOs.

@laanwj
Copy link
Member

laanwj commented Sep 30, 2019

Concept ACK

Should I propose them to the wiki for the release notes or only after merge?

The release notes are only put on the wiki momentarily before a major release. Between releases, please include the release note change in your PR, preferably as fragment to avoid merge conflicts.

@laanwj laanwj added this to the 0.20.0 milestone Sep 30, 2019
@maflcko
Copy link
Member

maflcko commented Oct 2, 2019

ACK 47c0246

@maflcko
Copy link
Member

maflcko commented Oct 2, 2019

Can you add a file ./doc/release-notes-16524.md with the content:

Low-level changes
=================

Tests
---

- `-fallbackfee` was 0 (disabled) by default for the main chain, but 20000 by default for the test chains. Now it is 0 by default for all chains. Testnet and regtest users will have to add fallbackfee=20000 to their configuration if they weren't setting it and they want it to keep working like before. (#16524)

Before it was 0 by default for main and 20000 for test and regtest.
Now it is 0 by default for all chains, thus there's no need to call Params().

Also now the default for main is properly documented
@jtimon jtimon force-pushed the b19-true-wallet-no-chainparams branch from 47c0246 to ea4cc3a Compare October 2, 2019 16:11
@jtimon
Copy link
Contributor Author

jtimon commented Oct 2, 2019

Fixed nit, added the suggested release notes file.

As a reminder, this is incompatible with #16771 and we don't want to merge both of them.
Personally, I would be happy with either one of them.

@maflcko
Copy link
Member

maflcko commented Oct 2, 2019

ACK ea4cc3a

Show signature and timestamp

Signature:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK ea4cc3a7b36a9c77dbf0aff439da3ef0ea58e6e4
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUgysQwAhkIYBFGteQsfMxLROVL2n3C3HXXl/sufCxtEeyZUTkZJBAV+6Qu/lRc7
8eaFGekk92tvnoMIKQL5pANIJfxWKJQsSOKtZGAa+zQ3CtAvZJwiZPZOMpUPorz2
MeyaBVf4UrmrDdq1L4gJMv0pfE7RsSG1Svl6weDm03Nb2C81inZwzqsLkrqNAaCj
TauZPi+mad2wX7SS2r0VHIp4/ZFsHijJbLoTd30f0q0GJQXnoV9zR8LuAvZ//Fu0
wnUaawJ2yO4YeiGY0K0OGoI+LE4zGzXuRcMa1UFRZ5xGtJfoHQLt1fk4kI8FbNPl
63KQJIIXyYrERlv78NJpzhWK1IfeO4RvLakw/RlnXwKmpSpjIBdKI5Ugj+AI74e2
N+CKrlCZw8b+c7MzTu0ABRipYuF/V9xgjuLPkakqyHsCALDVAS0Kd4ZkPdi7qOPL
Jk82Tit07J5jBYYu6xGO8eCvwMpjINYwG+vgEe9CAUu8hfh7wq6QG4WSaTpJ+nJX
TtgZij77
=SeZE
-----END PGP SIGNATURE-----

Timestamp of file with hash 0fc571c1687439a4b0b402de2f3462f3b403a6ae5f6c7f06e547b017fe116a3d -

maflcko pushed a commit that referenced this pull request Oct 2, 2019
ea4cc3a Truly decouple wallet from chainparams for -fallbackfee (Jorge Timón)

Pull request description:

  Before it was 0 by default for main and 20000 for test and regtest.
  Now it is 0 by default for all chains, thus there's no need to call Params().

  Also now the default for main is properly documented.

  Suggestion for release notes:

  -fallbackfee was 0 (disabled) by default for the main chain, but 20000 by default for the test chains. Now it is 0 by default for all chains. Testnet and regtest users will have to add fallbackfee=20000 to their configuration if they weren't setting it and they want it to keep working like before.

  Should I propose them to the wiki for the release notes or only after merge?

  For more context, see #16402 (comment)

ACKs for top commit:
  MarcoFalke:
    ACK ea4cc3a

Tree-SHA512: fdfaba5d813da4221e405e0988bef44f3856d10f897a94f9614386d14b7716f4326ab8a6646e26d41ef3f4fa61b936191e216b1b605e9ab0520b0657fc162e6c
@maflcko maflcko merged commit ea4cc3a into bitcoin:master Oct 2, 2019
@jtimon jtimon deleted the b19-true-wallet-no-chainparams branch October 2, 2019 19:44
@jtimon
Copy link
Contributor Author

jtimon commented Oct 3, 2019

Oops, actually the release notes are wrong. People have to set fallbackfee=0.0002 rather than fallbackfee=20000 because it is in BTC, not satoshis.
What to do? a PR only for that?

jtimon added a commit to jtimon/multi-ln-demo that referenced this pull request Oct 3, 2019
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Oct 3, 2019
jtimon added a commit to jtimon/multi-ln-demo that referenced this pull request Oct 3, 2019
instagibbs added a commit to bitcoin-core/HWI that referenced this pull request Oct 7, 2019
ad70a7f Set the fallbackfee in bitcoind params (Andrew Chow)

Pull request description:

  bitcoin/bitcoin#16524 Broke our tests by disabling `-fallbackfee`. This PR sets `-fallbackfee=20000` in our test bitcoind startup args.

ACKs for top commit:
  instagibbs:
    utACK ad70a7f

Tree-SHA512: e0f44607e350ed6a0782e22427114cdfa165af354cabfd77779fcc97b84f44301185dc114f221d6535786a2c183c907af6499658a3fcfcc511f60536248d268d
darwin added a commit to darwin/simverse that referenced this pull request Oct 7, 2019
SomberNight added a commit to SomberNight/electrum that referenced this pull request Jun 17, 2020
SomberNight added a commit to spesmilo/electrum that referenced this pull request Jun 17, 2020
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jul 31, 2020
Summary:
Truly decouple wallet from chainparams for -fallbackfee (Jorge Timón)

Pull request description:

  Before it was 0 by default for main and 20000 for test and regtest.
  Now it is 0 by default for all chains, thus there's no need to call Params().

  Also now the default for main is properly documented.

  Suggestion for release notes:

  -fallbackfee was 0 (disabled) by default for the main chain, but 20000 by default for the test chains. Now it is 0 by default for all chains. Testnet and regtest users will have to add fallbackfee=20000 to their configuration if they weren't setting it and they want it to keep working like before.

  Should I propose them to the wiki for the release notes or only after merge?

  For more context, see bitcoin/bitcoin#16402 (comment)

bitcoin/bitcoin@ea4cc3a

---

Depends on D7061

Backport of Core [[bitcoin/bitcoin#16524 | PR16524]]

Test Plan:
  ninja check check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7062
ghubstan added a commit to ghubstan/bisq that referenced this pull request Aug 12, 2020
This commit adds a -fallbackfee=0.0002 parameter to the start 'bitcoind'
command to keep bitcoin-core v0.20.1 working as v0.19.1 does -- with the
'fallbackfee' enabled.

Bitcoin v0.20.0 contains a fix for inconsistent behaviour related
to this fallbackfee configuration.  Prior to v0.20, fallbackfee
was disabled (0) by default for the mainnet chain, but enabled
(0.0002) for the testnet and regtest chains.

A test case with bitcoin-core v0.20.1 was breaking on
the bitcoin-cli 'sendtoaddress' command, which was returning an
error message instead of a tx-id:

    error code: -4
    error message:
    Fee estimation failed. Fallbackfee is disabled. \
    Wait a few blocks or enable -fallbackfee.

Bitcoin-core v0.20.0 release notes contain info about this change:
    https://bitcoin.org/en/release/v0.20.0#updated-rpcs-1

The Bitcoin-core PR is bitcoin/bitcoin#16524
kristapsk added a commit to kristapsk/bitcoin-scripts that referenced this pull request Oct 29, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants