Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit listening to version messages #35

Conversation

dmos62
Copy link

@dmos62 dmos62 commented Mar 30, 2020

Dependant PR: bisq-network/bisq#4081

Commit message for commit titled "Add listener for when a VersionMessage is received" explains the purpose of the PR in general:

Since Bisq requires nodes with specific configuration (as reflected in
their version messages), we also want to handle misconfigured nodes,
especially in cases where the user expects that node to be used. To get
access to all received version messages, a new listener is introduced.
Existing listeners are not sufficient, because in some cases BitcoinJ
will kill the Peer (connection to a node) before any of them are
triggered. This listener will always be triggered when a VersionMessage
is received.

In total, this PR introduces a bugfix (Permit alerts during handshake, see bisq-network/bisq#4080), a compilation breaking fix (Fix javadoc compilation on JDK 11), a new listener (Add listener for when a VersionMessage is received) and bumps the version number (0.14.7.bisq.1-SNAPSHOT -> 0.14.7.bisq.2-SNAPSHOT).

It should be noted that there is a failing test (not resulting from this PR): ChannelConnectionTest.testChannelResume:459->roundTripClientWallet:551 » IllegalState.

Andreas Schildbach and others added 30 commits February 14, 2019 20:34
- Use Ubuntu Xenial (16.04) image.
- Add an OpenJDK 11 build.
- Drop Oracle JDK build.
- Exclude wallettemplate from build, because of the dreaded OpenJFX dependency.
…d() and upgradeToDeterministic() for compatibility.
… return keys/addresses of all active chains.
…key/address after new chain was activated.
…nto the sighash and old serialization is forced.
… seed words to work around the inability of Gradle to pass proper command line arguments.
schildbach and others added 25 commits October 15, 2020 11:53
In commit bc46e85, those two occurences of scriptCode building have been missed.

cherry pick bitcoinj@7c31dcb
Fee is now specified in virtual (kilo)bytes. For non-segwit transactions a virtual byte is the same as a byte so the change is backward compatible.

cherry pick bitcoinj@c168e67
Cherry pick bitcoinj@9267e71

This is to prevent a memory leak of pendingTxDownloads.
This keeps an erronious protocol exception from being thrown if an
alert message is received before a version message is received.

Fixes bisq-network/bisq#4080
@dmos62 dmos62 marked this pull request as draft February 3, 2021 15:45
@dmos62 dmos62 force-pushed the permit-listening-to-version-messages branch from 677f2dc to c29537c Compare February 3, 2021 15:48
@dmos62
Copy link
Author

dmos62 commented Feb 3, 2021

Oh, this PR is merging into the wrong branch. I'll resubmit.

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.