2022 Developer Survey is open! Take survey.

Questions tagged [sequence]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
72 views

How to set the sequence number in a coinbase transaction?

The sequence number seems to be used for locking a transaction in mempool. However, the coinbase transaction is not part of the mempool and thus the sequence number does not make sense. Is it just an &...
user avatar
  • 223
2 votes
1 answer
53 views

Sequence valid before time

I'm studying sequence, and I set a transaction valid after 512 seconds. First of all I use regtest and I start from clean blockchain, after that I mine 114 blocks. At this point miner creates a ...
user avatar
1 vote
1 answer
76 views

Can inputs to a transaction have different values for sequence?

I noticed that the sequence field is used to signal opt-in RBF. I would think that signaling RBF applies to the full transaction rather than particular inputs. If my transaction has two inputs, and I ...
user avatar
  • 301
0 votes
1 answer
76 views

nSequence doesn't block my transaction

I'm studying how Timelock works. I'm able to create transaction with absolute time, nLocktime and OP_CLTV. Now I want to understand the relative part, and I start with nSequence. At the moment I use ...
user avatar
0 votes
1 answer
25 views

How does a constant opcode become negative in Script

I am doing some tutorial and in this chapter we are suppose to reproduce the Script scripting language I am struggling to understand one of the exercises, here it is: Create a ScriptSig that can ...
user avatar
  • 2,361
1 vote
1 answer
104 views

Problem using op_checksequenceverify (op_csv) with relative time flag

i have trouble in using op_csv. The spending condition is not match to my expectation. FUNDING Redeem Script Hex: 03010040b27576a91451d2a5e04d25ceaa86e600a6ec34bd24431c675d88ac Redeem Script Asm: 03&...
user avatar
2 votes
1 answer
183 views

In Lightning commitment transactions, what do the upper 8 bits of sequence and locktime represent?

In Bolt 3 of the Lightning Network specs, for commitment transactions it states: locktime: upper 8 bits are 0x20, lower 24 bits are the lower 24 bits of the obscured commitment number. sequence: ...
user avatar
  • 669
0 votes
1 answer
38 views

How many bytes long should nSequence be?

When I look at the following raw transaction from: https://blockstream.info/tx/a175425ee2f3c01acc97ef32ab1082db14eaa94e5af4c54f02f3b01dec72558e?expand ...
user avatar
  • 669
1 vote
2 answers
81 views

Could someone provide an example of a tx spending from an input with a relative LockTime?

I want to see an example of a raw transaction which spends from an input which has a relative LockTime applied to it. An example would be a transaction from a Lightning payment channel in which a user ...
user avatar
  • 669
5 votes
1 answer
86 views

What does the 'n' in nLockTime and nSequence stand for?

I know what nLockTime and nSequence do, but I'm just curious about where the 'n' comes from. Thanks
user avatar
  • 669
1 vote
1 answer
352 views

How to make a transaction with locktime on testnet?

I tried to make transaction with nLocktime on bitcoin testnet. I am not able to broadcast it. Can someone please help me to make a basic transaction with 1 input and 1 output, so that I can broadcast ...
user avatar
5 votes
2 answers
403 views

What is transaction "finality"?

bitcoind IsFinalTx() as seen here checks the properties of a transaction in this order: Is nLockTime exactly 0? That's final. return. If it's not 0, is it below the current block height / time? If so,...
user avatar
  • 4,646
1 vote
1 answer
50 views

Where is a tx located before finalized with the sequence number or locktime?

My understand, for a tx, before it finalized with the locktime, it can not go into mempool. But, which specified location is the tx to stay for waiting the locktime come. Similiar, for before the ...
user avatar
  • 51
10 votes
1 answer
1k views

What does the sequence in a transaction input mean?

Following a transaction input: What is the meaning of the sequence number? What does the 4294967295 tell me?
user avatar
  • 155
2 votes
1 answer
448 views

Why mark a transaction as RBF (Replace-by-Fee) explicitly?

I could broadcast a second transaction that has the same inputs but a higher fee, without marking the original transaction as replaceable. Miners would most likely favor the second transaction and ...
user avatar
  • 23
0 votes
1 answer
333 views

Lightning Network's RSMC: what happens if there's no revocation transaction?

From the Lightning Network's whitepaper, page 19: If they do not broadcast their most recent version, they will be penalized by taking all the funds in the channel and giving it to the ...
user avatar
1 vote
0 answers
136 views

Which wallet provide lock-time feature?

I try to understand how the lock-time and sequence number work, but I got many different explanations, it is really confusing. I like to send a Bitcoin with lock-time to myself, but I don't know how ...
user avatar
  • 11
1 vote
1 answer
637 views

Understanding BIP 143 [hash computation, lockTime, sequence number, witness format]

I'm trying to grasp some of the concepts presented in BIP 143. These are the things I'm stuck on: (1) A new hash format is presented. This new format is used to create a hash, which when signed with ...
user avatar
2 votes
1 answer
623 views

What is the "sequence" and its details as referenced for the segwit application?

On the segwit page there is a reference that the "feffffff" is the "sequence". What does the "sequence" represent in relation to what? Does it always have to be "feffffff"? What happens if it's "...
user avatar
  • 1,400
1 vote
1 answer
505 views

What is the recomended sequence for signalling RBF?

What is the recommended nSequence for signalling RBF transactions? BIP125 says: A transaction is considered to have opted in to allowing replacement of itself if any of its inputs have an ...
user avatar
  • 2,535
5 votes
1 answer
668 views

Sequence number semantics

Reading the following BIPs: 68, 112, 125, I got a few questions about the sematics of sequence numbers. As far as I understood, in version 1 transactions, sequence numbers have the following meaning: ...
user avatar
1 vote
1 answer
1k views

Why does blockchain.info show the warning "Transaction rejected by our node. Reason: The transaction is not final"?

The transaction fc3f81c625720063c5cab2145bcb5ef20b13ff0aa73b0b2435ffdb645acfcb8b has the warning "Transaction rejected by our node. Reason: The transaction is not final." on Blockchain.info. The same ...
user avatar
1 vote
1 answer
355 views

What happens when relative and absolute lock times are used in the same transaction?

BIP 68 redefines the input sequence number field as bit vector that encodes a relative lock time. A transaction can be encumbered with an absolute lock time by setting the nLockTime field to a non-...
user avatar
  • 2,226
5 votes
1 answer
970 views

What is an "insecure transaction type", as mentioned by Bitcoin Wallet for Android?

I am running Bitcoin Core v0.11.0.0-gd26f951 (64-bit) at home on Ubuntu, and have installed the Bitcoin Wallet for Android on my phone. I sent two transactions from home to my phone: First, Second. ...
user avatar
4 votes
1 answer
2k views

Is my understanding of locktime correct?

I have been trying to understand locktimes and sequence numbers. I'm gradually building up a picture in my head based on code, code comments and info on the web. Rather than asking lots of questions, ...
user avatar
  • 1,693
5 votes
3 answers
959 views

Is there any way to make an UTXO that cannot be spent until a certain block #?

In bitcoin, each transaction has an nLockTime integer to specify the earliest allowed block number/time that the transaction can be added to the blockchain. In addition, each transaction input has an ...
user avatar
  • 13.7k
1 vote
1 answer
578 views

Can a Ripple Transaction Sequence have gaps?

I am wondering whether a Ripple Transaction with a Sequence number that ships over a few numbers from the previous Sequence number be accepted as a valid transaction in the Ripple Network? For ...
user avatar
  • 42.7k
35 votes
2 answers
10k views

What is TxIn's sequence?

I'm currently trying to generate the genesis block with my code and I've stumbled upon the TxIn sequence field that is not explained in the Protocol Specification wiki page, nor does it seem to appear ...
user avatar
  • 42.7k