mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-16 04:05:50 +00:00
Remove comments about sequence numbers being disabled.
As of Bitcoin Core 0.12, sequence numbers are used for the infamous opt-in full replace-by-fee feature.
This commit is contained in:
parent
1c6fa9ceb9
commit
ee1aa05460
@ -46,9 +46,7 @@ public class TransactionInput extends ChildMessage {
|
|||||||
// Magic outpoint index that indicates the input is in fact unconnected.
|
// Magic outpoint index that indicates the input is in fact unconnected.
|
||||||
private static final long UNCONNECTED = 0xFFFFFFFFL;
|
private static final long UNCONNECTED = 0xFFFFFFFFL;
|
||||||
|
|
||||||
// Allows for altering transactions after they were broadcast. Tx replacement is currently disabled in the C++
|
// Allows for altering transactions after they were broadcast.
|
||||||
// client so this is always the UINT_MAX.
|
|
||||||
// TODO: Document this in more detail and build features that use it.
|
|
||||||
private long sequence;
|
private long sequence;
|
||||||
// Data needed to connect to the output of the transaction we're gathering coins from.
|
// Data needed to connect to the output of the transaction we're gathering coins from.
|
||||||
private TransactionOutPoint outpoint;
|
private TransactionOutPoint outpoint;
|
||||||
@ -193,8 +191,7 @@ public class TransactionInput extends ChildMessage {
|
|||||||
* Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the
|
* Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the
|
||||||
* transaction independently of each other. Newer versions of a transaction can replace an existing version that's
|
* transaction independently of each other. Newer versions of a transaction can replace an existing version that's
|
||||||
* in nodes memory pools if the existing version is time locked. See the Contracts page on the Bitcoin wiki for
|
* in nodes memory pools if the existing version is time locked. See the Contracts page on the Bitcoin wiki for
|
||||||
* examples of how you can use this feature to build contract protocols. Note that as of 2012 the tx replacement
|
* examples of how you can use this feature to build contract protocols.
|
||||||
* feature is disabled so sequence numbers are unusable.
|
|
||||||
*/
|
*/
|
||||||
public long getSequenceNumber() {
|
public long getSequenceNumber() {
|
||||||
return sequence;
|
return sequence;
|
||||||
@ -204,8 +201,7 @@ public class TransactionInput extends ChildMessage {
|
|||||||
* Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the
|
* Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the
|
||||||
* transaction independently of each other. Newer versions of a transaction can replace an existing version that's
|
* transaction independently of each other. Newer versions of a transaction can replace an existing version that's
|
||||||
* in nodes memory pools if the existing version is time locked. See the Contracts page on the Bitcoin wiki for
|
* in nodes memory pools if the existing version is time locked. See the Contracts page on the Bitcoin wiki for
|
||||||
* examples of how you can use this feature to build contract protocols. Note that as of 2012 the tx replacement
|
* examples of how you can use this feature to build contract protocols.
|
||||||
* feature is disabled so sequence numbers are unusable.
|
|
||||||
*/
|
*/
|
||||||
public void setSequenceNumber(long sequence) {
|
public void setSequenceNumber(long sequence) {
|
||||||
unCache();
|
unCache();
|
||||||
|
@ -4879,7 +4879,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
boolean hasSequence();
|
boolean hasSequence();
|
||||||
@ -4887,7 +4887,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
int getSequence();
|
int getSequence();
|
||||||
@ -5101,7 +5101,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasSequence() {
|
public boolean hasSequence() {
|
||||||
@ -5111,7 +5111,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public int getSequence() {
|
public int getSequence() {
|
||||||
@ -5617,7 +5617,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasSequence() {
|
public boolean hasSequence() {
|
||||||
@ -5627,7 +5627,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public int getSequence() {
|
public int getSequence() {
|
||||||
@ -5637,7 +5637,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder setSequence(int value) {
|
public Builder setSequence(int value) {
|
||||||
@ -5650,7 +5650,7 @@ public final class Protos {
|
|||||||
* <code>optional uint32 sequence = 4;</code>
|
* <code>optional uint32 sequence = 4;</code>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* Sequence number. Currently unused, but intended for contracts in future.
|
* Sequence number.
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder clearSequence() {
|
public Builder clearSequence() {
|
||||||
|
@ -149,7 +149,7 @@ message TransactionInput {
|
|||||||
required uint32 transaction_out_point_index = 2;
|
required uint32 transaction_out_point_index = 2;
|
||||||
// Script that contains the signatures/pubkeys.
|
// Script that contains the signatures/pubkeys.
|
||||||
required bytes script_bytes = 3;
|
required bytes script_bytes = 3;
|
||||||
// Sequence number. Currently unused, but intended for contracts in future.
|
// Sequence number.
|
||||||
optional uint32 sequence = 4;
|
optional uint32 sequence = 4;
|
||||||
// Value of connected output, if known
|
// Value of connected output, if known
|
||||||
optional int64 value = 5;
|
optional int64 value = 5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user