Skip to content

Commit

Permalink
wallet.proto: Add IN_CONFLICT transaction confidence state.
Browse files Browse the repository at this point in the history
  • Loading branch information
schildbach committed Nov 29, 2015
1 parent 293591b commit 6b95012
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 50 deletions.
114 changes: 65 additions & 49 deletions core/src/main/java/org/bitcoinj/wallet/Protos.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion core/src/wallet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@ message TransactionOutput {
*/
message TransactionConfidence {
enum Type {
// See TransactionConfidence.java for a more thorough explanation of these types.
UNKNOWN = 0;
BUILDING = 1; // In best chain. If and only if appeared_at_height is present.
PENDING = 2; // Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.
NOT_IN_BEST_CHAIN = 3; // Deprecated: equivalent to PENDING.
DEAD = 4; // Either if overriding_transaction is present or transaction is dead coinbase
DEAD = 4; // Either if overriding_transaction is present or transaction is dead coinbase.
IN_CONFLICT = 5; // There is another transaction spending one of this transaction inputs.
}

// This is optional in case we add confidence types to prevent parse errors - backwards compatible.
Expand Down

0 comments on commit 6b95012

Please sign in to comment.