Questions tagged [sequence]
Field on transaction inputs that can indicate that a transaction uses replace by fee and/or lock time.
41
questions
1
vote
1
answer
67
views
What would happen if the non-upgraded node to BIP68 receives block with the transaction where one of its nSequence is different than 0xffffffff?
What would happen if the node not upgraded to BIP68 and relative lock time meaning of nSequence get a block with the transaction where one of its nSequence is not set to 0xffffffff, but to value which ...
0
votes
1
answer
75
views
Is the image in BIP68 represented in context of little or big endian?
The image in BIP68 is as follows:
So, based on the most significant bit (1<<31) we can activate or deactivate relative lock time.
However, depending on which endian is implied, this image can ...
0
votes
1
answer
108
views
What are the correct "threshold" values of the nSequence in order to activate relative time lock and only absolute time lock?
Based on BIP68, relative lock time is activated if the most significant bit in nSequence value is not set. In other words, if the 32th (1<<31) bit is not set. So for the nSequence values less-...
1
vote
1
answer
154
views
What was the first original purpose of the nLocktime? Was it only the time bound to nSequence?
Pieter Wuille gave an amazing answer related to the connection between nSequence and nLocktime in the early days of Bitcoin.
However, based on his answer it looks like the nLocktime was NOT really ...
4
votes
1
answer
230
views
What is the logic (if there is) behind linking the nSequence and nLockTime?
The nSequence transaction field was originally intended for a replacement logic, but since it was never well thought out, it was never implemented. However, it has been implemented since the beginning ...
1
vote
1
answer
85
views
Does the nSequence of the input that consumes the CLTV output have to be different from 0xffffffff?
Looking at the BIP65, it says that the CLTV will fail if the nSequence field of the txin is 0xffffffff. It seems logical to me since if the nSequence of all inputs are set to 0xffffffff, the value of ...
2
votes
1
answer
99
views
What is the relation between nLockTime and nSequence?
Here Antoine said the following:
This introduced absolute timelock capability through the nLockTime transaction field, which is disabled if all the transactions inputs have an nSequence that is ...
4
votes
1
answer
137
views
What are all the meanings of the nSequence field?
I know the original purpose of the nSequence field was to hold the transaction in the mempool with the transaction being replaced when the larger value comes and so on up to 0xFFFFFFFF when the ...
3
votes
1
answer
93
views
What does nVersion represent in Bitcoin transaction?
Have a few questions about the nVersion field in the transaction serialization format and they are related to the purpose of this field.
What does this field tell us? In the sense that if it is ...
10
votes
2
answers
357
views
Why is the locktime set at transaction level while the sequence is set at input level?
Giacomo Zucco pointed out the oddity of there being one timelock field per transaction, but one sequence per input.
Even for the original use of determining the order of replacement, it would seem ...
4
votes
1
answer
105
views
Does `0 OP_CSV` force the spending transaction to signal BIP125 replacability?
If I send bitcoins to an output whose script will execute 0 OP_CHECKSEQUENCEVERIFY when it is spent, does that require the spender to set the BIP125 signal indicating that the transaction is ...
0
votes
1
answer
72
views
Does blockchain "hold" funds?
I was talking to some friends and one mentioned to get paid bitcoin, blockchain wil only release funds to a trusted wallet with good history and transactions, and also something regarding "...
2
votes
0
answers
138
views
What tools can I use to create and replace RBF transactions?
I'd like to create transactions within my python application, that support replace-by-fee RBF (BIP125).
Apparently, if I want to be able to replace my transaction later on, I need to signal that ...
1
vote
1
answer
115
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 &...
2
votes
1
answer
115
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 ...
1
vote
1
answer
104
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 ...
0
votes
1
answer
117
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 ...
0
votes
1
answer
36
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 ...
1
vote
1
answer
165
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&...
2
votes
1
answer
223
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: ...
0
votes
1
answer
53
views
How many bytes long should nSequence be?
When I look at the following raw transaction from: https://blockstream.info/tx/a175425ee2f3c01acc97ef32ab1082db14eaa94e5af4c54f02f3b01dec72558e?expand
...
1
vote
2
answers
109
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 ...
6
votes
1
answer
136
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
1
vote
1
answer
463
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 ...
5
votes
2
answers
490
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,...
1
vote
1
answer
60
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 ...
12
votes
1
answer
2k
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?
2
votes
1
answer
481
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 ...
0
votes
1
answer
354
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
...
1
vote
0
answers
151
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 ...
1
vote
1
answer
815
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 ...
2
votes
1
answer
719
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 "...
3
votes
1
answer
714
views
What is the recommended 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 nSequence ...
6
votes
1
answer
764
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:
...
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 ...
1
vote
1
answer
480
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-...
5
votes
1
answer
1k
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. ...
5
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, ...
5
votes
3
answers
1k
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 ...
1
vote
1
answer
605
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 ...
38
votes
2
answers
12k
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 ...