Skip to content

Commit

Permalink
Don't opt-in to RBF (ordinals#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Oct 21, 2022
1 parent ef7285a commit 0c491b8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ mod tests {
assert_eq!(
context.index.find(50 * COIN_VALUE).unwrap().unwrap(),
SatPoint {
outpoint: "9068a11b8769174363376b606af9a4b8b29dd7b13d013f4b0cbbd457db3c3ce5:0"
outpoint: "0c4eb1fa83a7d6ce0e21e5e616a96e83a7b1658170fb544acf6f5c6a2d4b3f90:0"
.parse()
.unwrap(),
offset: 0,
Expand Down
4 changes: 2 additions & 2 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1244,8 +1244,8 @@ mod tests {
<h2>1 Output</h2>
<ul class=monospace>
<li>
<a href=/output/9068a11b8769174363376b606af9a4b8b29dd7b13d013f4b0cbbd457db3c3ce5:0 class=monospace>
9068a11b8769174363376b606af9a4b8b29dd7b13d013f4b0cbbd457db3c3ce5:0
<a href=/output/0c4eb1fa83a7d6ce0e21e5e616a96e83a7b1658170fb544acf6f5c6a2d4b3f90:0 class=monospace>
0c4eb1fa83a7d6ce0e21e5e616a96e83a7b1658170fb544acf6f5c6a2d4b3f90:0
</a>
<dl>
<dt>value</dt><dd>5000000000</dd>
Expand Down
3 changes: 1 addition & 2 deletions src/subcommand/server/templates/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod tests {
.parse()
.unwrap(),
script_sig: script::Builder::new().push_scriptint(4).into_script(),
sequence: Sequence(0),
sequence: Sequence::MAX,
witness,
}
}
Expand All @@ -40,7 +40,6 @@ mod tests {
<h1>Input /1/2/3</h1>
<dl>
<dt>previous output</dt><dd class=monospace>0000000000000000000000000000000000000000000000000000000000000000:0</dd>
<dt>sequence</dt><dd>0</dd>
<dt>witness</dt><dd class=data>010101</dd>
<dt>script sig</dt><dd class=data>OP_PUSHBYTES_1 04</dd>
<dt>text</dt><dd>\x01\x04</dd>
Expand Down
6 changes: 3 additions & 3 deletions src/subcommand/wallet/transaction_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl TransactionBuilder {
.push_slice(&[0; 71])
.push_slice(&[0; 65])
.into_script(),
sequence: Sequence::ENABLE_RBF_NO_LOCKTIME,
sequence: Sequence::MAX,
witness: Witness::new(),
})
.collect(),
Expand Down Expand Up @@ -294,7 +294,7 @@ impl TransactionBuilder {
.map(|outpoint| TxIn {
previous_output: *outpoint,
script_sig: Script::new(),
sequence: Sequence::ENABLE_RBF_NO_LOCKTIME,
sequence: Sequence::MAX,
witness: Witness::new(),
})
.collect(),
Expand Down Expand Up @@ -549,7 +549,7 @@ mod tests {
TxIn {
previous_output,
script_sig: Script::new(),
sequence: Sequence::ENABLE_RBF_NO_LOCKTIME,
sequence: Sequence::MAX,
witness: Witness::new(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion test-bitcoincore-rpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl Api for Server {
.map(|input| TxIn {
previous_output: OutPoint::new(input.txid, input.vout),
script_sig: Script::new(),
sequence: Sequence(0),
sequence: Sequence::MAX,
witness: Witness::new(),
})
.collect(),
Expand Down
4 changes: 2 additions & 2 deletions test-bitcoincore-rpc/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl State {
script_sig: script::Builder::new()
.push_scriptint(self.blocks.len().try_into().unwrap())
.into_script(),
sequence: Sequence(0),
sequence: Sequence::MAX,
witness: Witness::new(),
}],
output: vec![TxOut {
Expand Down Expand Up @@ -102,7 +102,7 @@ impl State {
input.push(TxIn {
previous_output: OutPoint::new(tx.txid(), *vout as u32),
script_sig: Script::new(),
sequence: Sequence(0),
sequence: Sequence::MAX,
witness: Witness::new(),
});
}
Expand Down

0 comments on commit 0c491b8

Please sign in to comment.