forked from bitcoinj/bitcoinj
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dash support: Ignore non-bitcoin messages when allowMoreInventoryType…
…s() and allowMoreMessages() is on.
- Loading branch information
1 parent
f31daee
commit 5b35c84
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
core/src/main/java/org/bitcoinj/core/IgnoreThisMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.bitcoinj.core; | ||
|
||
/** | ||
* Created by Hash Engineering on 6/26/2017. | ||
* | ||
* This is a wrapper to allow a message to be ignored that bitcoinj | ||
* will not process. This will prevent the peer from being rejected. | ||
*/ | ||
public class IgnoreThisMessage extends EmptyMessage { | ||
|
||
public IgnoreThisMessage(NetworkParameters params) { | ||
super(params); | ||
length = 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters