Skip to content

Conversation

@luke-jr
Copy link
Member

@luke-jr luke-jr commented Dec 30, 2018

No description provided.

@fanquake fanquake added the GUI label Dec 30, 2018
@fanquake
Copy link
Member

When I try compiling with ./configure --disable-bip70:

  CXX      qt/libbitcoinqt_a-sendcoinsdialog.o
  CXX      qt/libbitcoinqt_a-sendcoinsentry.o
  CXX      qt/libbitcoinqt_a-signverifymessagedialog.o
qt/paymentserver.cpp:321:9: error: expected expression
        else // normal URI
        ^
1 error generated.
make[2]: *** [qt/libbitcoinqt_a-paymentserver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1

@luke-jr luke-jr force-pushed the bip70_fallback_to_bip21 branch from 381e22e to 2c5e0c5 Compare December 31, 2018 02:52
@luke-jr
Copy link
Member Author

luke-jr commented Dec 31, 2018

Fixed, added another fix, and a Travis test for no-BIP70

@luke-jr luke-jr force-pushed the bip70_fallback_to_bip21 branch from 2c5e0c5 to a74d4c0 Compare December 31, 2018 03:13
@Empact
Copy link
Contributor

Empact commented Dec 31, 2018

How about a test case for this behavior?

@jameshilliard
Copy link
Contributor

@luke-jr can you rebase this? This should probably be a 0.18 milestone requirement.

@laanwj laanwj added this to the 0.18.0 milestone Jan 22, 2019
@Sjors
Copy link
Member

Sjors commented Feb 11, 2019

cc @MarcoFalke since this also adds one more Travis machine

@maflcko
Copy link
Member

maflcko commented Feb 11, 2019

Don't we already have at least 3 jobs with a gui? I'd prefer to just set the configure flag on one of them.

@luke-jr luke-jr force-pushed the bip70_fallback_to_bip21 branch from a74d4c0 to 84f5315 Compare February 11, 2019 15:15
@luke-jr
Copy link
Member Author

luke-jr commented Feb 11, 2019

@MarcoFalke It doesn't make sense to test this without the wallet. Is there a reason x86_64 Linux [GOAL: install] [xenial] [no depends, only system libs, sanitizers: thread (TSan), no wallet] needs to be wallet-less? Or where else would you want to add it?

@luke-jr
Copy link
Member Author

luke-jr commented Feb 11, 2019

(also, rebased)

@DrahtBot
Copy link
Contributor

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #15295 (fuzz: Add test/fuzz/test_runner.py and run it in travis by MarcoFalke)
  • #15134 (tests: Add a Travis ASan/LSan/UBSan job testing in a unsigned char environment (-funsigned-char) by practicalswift)

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.

PACKAGES="clang llvm python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev"
NO_DEPENDS=1
GOAL="install"
BITCOIN_CONFIG="--enable-zmq --disable-bip70 --with-incompatible-bdb --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --with-sanitizers=address,integer,undefined CC=clang CXX=clang++"
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to set --disable-bip70 on one of the other bionic jobs that have wallet enabled.

Copy link
Member Author

Choose a reason for hiding this comment

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

@MarcoFalke It doesn't make sense to test this without the wallet. Is there a reason x86_64 Linux [GOAL: install] [xenial] [no depends, only system libs, sanitizers: thread (TSan), no wallet] needs to be wallet-less? Or where else would you want to add it?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe L133, L103, or L93?

Copy link
Member

Choose a reason for hiding this comment

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

I think xenial has wallet disabled because the thread sanitizer yells at bdb

@laanwj
Copy link
Member

laanwj commented Feb 12, 2019

utACK 84f5315

@Sjors
Copy link
Member

Sjors commented Feb 12, 2019

Compiles and src/qt/test/test_bitcoin-qt passes on macOS 10.14.3 (--disable-bip70 & --enable-bip70). These tests don't cover much though.

84f5315 looks good modulo Travis, but it seems like a good idea to actually test this. Is there a (testnet or otherwise) site that supports BIP21 fallback for BIP71?

Also can someone upload a BIP70 file with and without such fallback?

@gmaxwell
Copy link
Contributor

utACK

@jonasschnelli
Copy link
Contributor

utACK 84f5315

@jonasschnelli jonasschnelli merged commit 84f5315 into bitcoin:master Feb 14, 2019
jonasschnelli added a commit that referenced this pull request Feb 14, 2019
…1 parsing

84f5315 Travis: Add test without BIP70 (but still full wallet + tests) (Luke Dashjr)
113f000 GUI: If BIP70 is disabled, give a proper error when trying to open a payment request file (Luke Dashjr)
9975282 GUI: If BIP70 is disabled, attempt to fall back to BIP21 parsing (Luke Dashjr)

Pull request description:

Tree-SHA512: 66a684ce4336d0eac8b0107b405ff3a2cf312258a967f3e1b14734cd39db11e2db3e9b03492755583170d94d54754ef536b0776e5f19a0cc2caca8379eeb4495
dzutto pushed a commit to dzutto/dash that referenced this pull request Aug 19, 2021
…to BIP21 parsing

84f5315 Travis: Add test without BIP70 (but still full wallet + tests) (Luke Dashjr)
113f000 GUI: If BIP70 is disabled, give a proper error when trying to open a payment request file (Luke Dashjr)
9975282 GUI: If BIP70 is disabled, attempt to fall back to BIP21 parsing (Luke Dashjr)

Pull request description:

Tree-SHA512: 66a684ce4336d0eac8b0107b405ff3a2cf312258a967f3e1b14734cd39db11e2db3e9b03492755583170d94d54754ef536b0776e5f19a0cc2caca8379eeb4495
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Aug 24, 2021
Summary:
Commit 1:
> GUI: If BIP70 is disabled, attempt to fall back to BIP21 parsing
GUI: If BIP70 is disabled, attempt to fall back to BIP21 parsing

Commit 2:
> GUI: If BIP70 is disabled, give a proper error when trying to open a payment request file
bitcoin/bitcoin@113f000

This is a backport of [[bitcoin/bitcoin#15063 | core#15063]]

Test Plan:
```
cmake .. -GNinja -DENABLE_BIP70=OFF
ninja all check-all`
```

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9897
dzutto pushed a commit to dzutto/dash that referenced this pull request Aug 27, 2021
…to BIP21 parsing

84f5315 Travis: Add test without BIP70 (but still full wallet + tests) (Luke Dashjr)
113f000 GUI: If BIP70 is disabled, give a proper error when trying to open a payment request file (Luke Dashjr)
9975282 GUI: If BIP70 is disabled, attempt to fall back to BIP21 parsing (Luke Dashjr)

Pull request description:

Tree-SHA512: 66a684ce4336d0eac8b0107b405ff3a2cf312258a967f3e1b14734cd39db11e2db3e9b03492755583170d94d54754ef536b0776e5f19a0cc2caca8379eeb4495
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Aug 29, 2021
@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.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants