Skip to content

tests: Add unix timestamp tests for OP_CLTV and max mediantimepast tests - #32229

Closed
Christewart wants to merge 1 commit into
bitcoin:masterfrom
Christewart:2025-04-06-locktime-tests
Closed

Christewart wants to merge 1 commit into
bitcoin:masterfrom
Christewart:2025-04-06-locktime-tests

Conversation

@Christewart

@Christewart Christewart commented Apr 7, 2025 •

Copy link
Copy Markdown
Contributor

This PR adds a functional (p2p/block-validation) test for OP_CHECKLOCKTIMEVERIFY (BIP65) using unix-timestamp locktimes in test/functional/feature_cltv.py. It also adds tests around the maximum possible median-time-past (MTP) value, UINT32_MAX, and how that interacts with transaction finality.

The unix-timestamp portion of BIP65 already has unit-level coverage in transaction_tests.cpp (via tx_valid.json/tx_invalid.json), but those tests call VerifyScript() directly and never exercise median-time-past (MTP) or block connection. MTP-vs-nLockTime behavior itself is covered separately in miner_tests.cpp (lines 525-534) and feature_csv_activation.py (lines 340-355), but neither exercises OP_CLTV specifically. This test closes that gap: it builds and submits full blocks over p2p and checks that a block containing an OP_CLTV-locked output is only accepted once BIP113 MTP actually satisfies the requested locktime.

This PR also adds a BIP113 test to feature_csv_activation.py showing that MTP can never advance past UINT32_MAX - 1, so an output with a plain nLockTime of UINT32_MAX can never be confirmed. This is a general BIP113 property independent of OP_CLTV.

Thanks to @mabu44 and @sedited for the review so far.

@DrahtBot

DrahtBot commented Apr 7, 2025 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
Concept ACK sedited

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

@DrahtBot DrahtBot added the Tests label Apr 7, 2025
@Christewart
Christewart force-pushed the 2025-04-06-locktime-tests branch from 4f483ea to 4d2e108 Compare April 7, 2025 16:45
@Christewart
Christewart force-pushed the 2025-04-06-locktime-tests branch from 4d2e108 to 69b6bb9 Compare April 8, 2025 00:18
@DrahtBot DrahtBot removed the CI failed label Apr 8, 2025

@mabu44 mabu44 left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Unix-timestamp portion of BIP65 is currently tested in the c++ unit tests in "transactions_tests.cpp". Test data includes transactions that have OP_CLTV with Unix timestamps (the files are /src/test/data/tx_valid.json and tx_invalid.json).
Does your test cover scenarios that are not covered in the existing tests?

Comment thread test/functional/feature_cltv.py Resolved
Comment thread test/functional/feature_cltv.py Resolved
Comment thread test/functional/feature_cltv.py Resolved
@Christewart

Copy link
Copy Markdown
Contributor Author

Hi @mabu44 . Thanks for taking a look at this.

Do your test cover scenarios that are not covered in the existing tests?

Yes I believe so. I took a look at the values in tx_valid.json and tx_invalid.json. Here is a table

OP_CLTV parameter Transaction locktime field Valid
0 0 true
499999999 499999999 true
0 499999999 true
500000000 500000000 true
4294967295 4294967295 true
500000000 4294967295 true
0 0 true
-11 500000000 true
-19 4294967294 true
0 0 true
1 0 false
499999999 499999998 false
500000001 500000000 false
4294967295 4294967294 false
-1 0 false
-1 500000000 false
0 0 false
0 0 false
0 500000000 false
499999999 500000000 false
500000000 0 false
500000000 499999999 false
4294967296 4294967295 false
2147483648 2147483647 false
0 0 false

This test also directly tests the median-time-past logic. This is not tested in tx_{valid,invalid}.json as we just directly call VerifyScript() for individual transactions in the test files.

Interestingly, i think there may be one test case overlap with tx_valid.json. While this transaction could be valid with relay policy I don't believe a transaction with these locktimes would be allowed to be included in a block? This is because median-time-past logic for a block with this transaction could be not be satisfied as per my last test case here.

| 4294967295 | 4294967295 | true |

Some more eyes on this could be good as I may be making a mistake.

@Christewart
Christewart force-pushed the 2025-04-06-locktime-tests branch from 69b6bb9 to 062c31b Compare April 8, 2025 16:32

@mabu44 mabu44 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is an integration test of:

with some more edge cases relative to the year 2106. Right?

Interestingly, i think there may be one test case overlap with tx_valid.json. While this transaction could be valid with relay policy I don't believe a transaction with these locktimes would be allowed to be included in a block? This is because median-time-past logic for a block with this transaction could be not be satisfied as per my last test case here.

| 4294967295 | 4294967295 | true |

I think that such a transaction will become relay-valid in 2106, but, unless consensus changes, it will never be mined because no blocks will be produced to mine it.

Comment thread test/functional/feature_cltv.py Resolved
Comment thread test/functional/feature_cltv.py Resolved
Comment thread test/functional/feature_cltv.py Resolved
@Christewart

Copy link
Copy Markdown
Contributor Author

Thank you again for the careful review. I've integrated your code review in 024c3bf

So this is an integration test of:

* _Transaction validity based on input script and transaction locktime_: currently tested in [transactions_tests.cpp](https://github.com/bitcoin/bitcoin/blob/master/src/test/transaction_tests.cpp);

* _Transaction validity based on median block time_: currently tested in [miner_tests.cpp (lines 525-534)](https://github.com/bitcoin/bitcoin/blob/b8cefeb221490868d62b7a0695f8b5ea392d3654/src/test/miner_tests.cpp#L525-L534) and [feature_csv_activation.py (lines 340-355)](https://github.com/bitcoin/bitcoin/blob/b8cefeb221490868d62b7a0695f8b5ea392d3654/test/functional/feature_csv_activation.py#L340-L355)

with some more edge cases relative to the year 2106. Right?

Yes.

Interestingly, i think there may be one test case overlap with tx_valid.json. While this transaction could be valid with relay policy I don't believe a transaction with these locktimes would be allowed to be included in a block? This is because median-time-past logic for a block with this transaction could be not be satisfied as per my last test case here.

| 4294967295 | 4294967295 | true |

I think that such a transaction will become relay-valid in 2106, but, unless consensus changes, it will never be mined because no blocks will be produced to mine it.

That is my understanding as well 👍

Comment thread test/functional/feature_cltv.py Resolved
@Christewart
Christewart force-pushed the 2025-04-06-locktime-tests branch from 024c3bf to cbc1095 Compare August 2, 2025 18:57
@Christewart
Christewart requested a review from mabu44 August 2, 2025 18:57
@DrahtBot DrahtBot removed the CI failed label Aug 2, 2025
@fanquake

fanquake commented Dec 3, 2025

Copy link
Copy Markdown
Member

cc @petertodd

@DrahtBot

Copy link
Copy Markdown
Contributor

There hasn't been much activity lately. What is the status here?

Finding reviewers may take time. However, if the patch is no longer relevant, please close this pull request. If the author lost interest or time to work on this, please close it and mark it with one of the labels 'Up for grabs' or 'Insufficient Review', so that it can be picked up in the future.

@sedited

sedited commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

If I understand this change correctly, this adds test cases for the finality of a block's transactions and how they might interplay with CLTV. Can you re-formulate the PR description to make it clear what this actually tests? Contrary to your current description, it looks like we are already testing unix timestamp values in the locktime extensively. Are the finality tests better suited for feature_csv_activation?

@fanquake

Copy link
Copy Markdown
Member

@Christewart any chance you want to follow up to the above?

@bitcoin bitcoin deleted a comment from vincedillon558-tech Apr 30, 2026
@Christewart

Christewart commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @sedited

it looks like we are already testing unix timestamp values in the locktime extensively.

feature_csv_activation.py tests relative lock times and the OP_CHECKSEQUENCEVERIFY opcode. This test case is testing OP_CHECKLOCKTIMEVERIFY and absolute wall clock locktimes ("unix timestamps"). Different fields on the transaction are used for verification (sequence vs locktime).

Are the finality tests better suited for feature_csv_activation

In my opinion no so since this is testing absolute wall clock locktimes via a different opcode - OP_CLTV.

The real interesting part to me is the setting the unix timestamp of the node to UINT32_MAX, and then attempting to spend OP_CLTV locked utxos when we have reached the UINT32_MAX timestamp in the locktime field.

Since we cannot satisfy the MTP requirement of BIP113 (i.e. we cannot create a block with timestamp UINT32_MAX+1 so we are following BIP113 and monotonically increase the timestamp on the block) - the utxo can never be spent.

From a quick glance through feature_csv_activation.py I don't see any references to 2**32 or UINT32_MAX - so I doubt this edge case is tested there - although if you could link to an exact line that it was tested on that would be helpful.

In general, I think @mabu44 's comment was good:

#32229 (review)

EDIT:

Looking closer at feature_csv_activation.py it does look like it tests BIP113 logic (its unfortunate the file is named after the opcode and is testing more than the opcode). The logic testing UINT32_MAX could be moved over to that file, however the OP_CLTV test logic should stay here and I still believe there is no integration tests for OP_CLTV and unix timestamps - please link if you find them

@sedited

sedited commented May 22, 2026

Copy link
Copy Markdown
Contributor

The logic testing UINT32_MAX could be moved over to that file,

Yes, sorry for not being clearer on this before, but that is what I was suggesting.

however the OP_CLTV test logic should stay here and I still believe there is no integration tests for OP_CLTV and unix timestamps - please link if you find them.

Thanks for linking mabu44's comment again, I was referring to the same tests too. Maybe mention them in the PR descritpion?

The real interesting part to me is the setting the unix timestamp of the node to UINT32_MAX, and then attempting to spend OP_CLTV locked utxos when we have reached the UINT32_MAX timestamp in the locktime field.

I guess once that MTP is reached, we'll have to change some part of the calculation anyway, but I'm fine with having a test for documenting this.

Concept ACK

@Christewart
Christewart force-pushed the 2025-04-06-locktime-tests branch from cbc1095 to 533d0c6 Compare July 5, 2026 19:17
@Christewart

Copy link
Copy Markdown
Contributor Author

Hi @sedited , I pushed a new commit: 533d0c6

Here are the things that i've changed since you've last reviewed

  • Rewrote the PR description to clarify what this actually tests and to credit the existing coverage you and @mabu44 pointed to (see above).
  • Split the UINT32_MAX / median-time-past edge case out of feature_cltv.py and into feature_csv_activation.py, since that behavior is a general BIP113 property and not specific to OP_CLTV (per our earlier discussion).
  • Rebased onto latest master.
  • The rebase pulled in test: Allow to set height in create_block #35089 (create_block's height= kwarg replacing the old create_coinbase(...) calling convention), which broke a few call sites this PR touches. Fixed those up to match the new convention.

Let me know if this addresses your concerns or if there's anything else you'd like changed.

@Christewart Christewart changed the title tests: Add unix timestamp tests for OP_CLTV tests: Add unix timestamp tests for OP_CLTV and max mediantimepast tests Jul 5, 2026
Comment thread test/functional/feature_cltv.py Resolved
Comment thread test/functional/feature_cltv.py Resolved
Comment thread test/functional/feature_cltv.py Resolved
Comment on lines +497 to +520
# Mine 6 blocks at UINT32_MAX - 1 so that MTP (the median of the last 11 blocks) becomes UINT32_MAX - 1
for _ in range(6):
block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX - 1)
block.solve()
self.send_blocks([block])
self.tip = block.hash_int
self.tipheight += 1
assert_equal(self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())['mediantime'], UINT32_MAX - 1)

# UINT32_MAX - 2 is the highest locktime that can be included in the next block:
# BIP113 requires nLockTime to be strictly less than the MTP of the previous block
max_locktime_tx = mtp_edge_case_tx(mtp_edge_case_inputs[0], UINT32_MAX - 2)
block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX, txlist=[max_locktime_tx])
block.solve()
self.send_blocks([block])
self.tip = block.hash_int
self.tipheight += 1

# A transaction locked to UINT32_MAX itself is never final: MTP can never exceed
# UINT32_MAX, so "nLockTime < MTP" can never be satisfied for nLockTime == UINT32_MAX
never_final_tx = mtp_edge_case_tx(mtp_edge_case_inputs[1], UINT32_MAX)
block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX, txlist=[never_final_tx])
block.solve()
self.send_blocks([block], success=False, reject_reason='bad-txns-nonfinal')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really exercising the edge case behaviour? It seems kind of obvious that for as long as the MTP isn't maxed out, the transaction will fail. From what I gather we want to show that a transaction with nLockTime will never be mined. Wouldn't it be better to mine to an MTP of UINT32_MAX, and then show that a) submitting a transaction to the mempool with nLockTime at UINT32_MAX fails, and that extending the chain further with a block containing the transaction will fail with "time-too-old".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked at the latest version here and I think this is still not addressed, but my comment was not really helpful. The interesting case in my eyes is that on the final block, a UINT32_MAX - 1 timelocked transaction is considered standard and enters the mempool, but can't ever be mined. How about adding this:

diff --git a/test/functional/feature_csv_activation.py b/test/functional/feature_csv_activation.py
index 410278f407b..943890d81bc 100755
--- a/test/functional/feature_csv_activation.py
+++ b/test/functional/feature_csv_activation.py
@@ -61,7 +61,7 @@ from test_framework.wallet import (
 )
 
 TESTING_TX_COUNT = 83  # Number of testing transactions: 1 BIP113 tx, 16 BIP68 txs, 66 BIP112 txs (see comments above)
-MTP_EDGE_CASE_INPUT_COUNT = 2  # Extra inputs for the "median-time-past can never reach UINT32_MAX" BIP113 test
+MTP_EDGE_CASE_INPUT_COUNT = 3 # Extra inputs for the "median-time-past can never reach UINT32_MAX" BIP113 test
 COINBASE_BLOCK_COUNT = TESTING_TX_COUNT + MTP_EDGE_CASE_INPUT_COUNT  # Number of coinbase blocks we need to generate as inputs for our txs
 BASE_RELATIVE_LOCKTIME = 10
 SEQ_DISABLE_FLAG = 1 << 31
@@ -520,6 +520,10 @@ class BIP68_112_113Test(BitcoinTestFramework):
         block.solve()
         self.send_blocks([block], success=False, reject_reason='bad-txns-nonfinal')
 
+        # A transaction locked to UINT32_MAX - 1 is not final until the last block is mined
+        max_locktime_standard_tx = mtp_edge_case_tx(mtp_edge_case_inputs[2], UINT32_MAX - 1)
+        assert_raises_rpc_error(-26, 'non-final', self.nodes[0].sendrawtransaction, max_locktime_standard_tx.serialize().hex())
+
         # max out MTP on the network to UINT32_MAX, so that the next block's nTime can't exceed it (and thus any block will be rejected for time-too-old)
         while self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())['mediantime'] < UINT32_MAX:
             block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX)
@@ -530,6 +534,10 @@ class BIP68_112_113Test(BitcoinTestFramework):
 
         assert_equal(self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())['mediantime'], UINT32_MAX)
 
+        # The transaction locked to UINT32_MAX - 1 is now final and enters the mempool, but there can't be another block, so it won't be mined
+        self.nodes[0].sendrawtransaction(max_locktime_standard_tx.serialize().hex())
+        assert max_locktime_standard_tx.txid_hex in self.nodes[0].getrawmempool()
+
         # submitting a transaction to the mempool with nLockTime at UINT32_MAX fails
         assert_raises_rpc_error(-26, 'non-final', self.nodes[0].sendrawtransaction, never_final_tx.serialize().hex())

…d BIP113 interaction

Add a functional (p2p/block-validation) test for OP_CHECKLOCKTIMEVERIFY
using unix-timestamp locktimes, including its interplay with BIP113
median-time-past (MTP) rules: a block containing an OP_CLTV-locked
output is only accepted once MTP satisfies the requested locktime.

Also add a BIP113 test to feature_csv_activation.py showing that MTP
can never exceed UINT32_MAX, so an output with a plain nLockTime of
UINT32_MAX can never be confirmed: BIP113 requires nLockTime to be
strictly less than MTP, and MTP itself can reach but never exceed
UINT32_MAX (nTime is a uint32 field, and a block's timestamp must
exceed the MTP of the blocks preceding it, so once MTP hits UINT32_MAX
no further block -- and thus no further MTP advance -- is possible).
This is a general BIP113 property independent of OP_CLTV, so it lives
alongside the other BIP113 tests rather than in feature_cltv.py.
@Christewart
Christewart force-pushed the 2025-04-06-locktime-tests branch from d6fb328 to 1f05d8e Compare July 29, 2026 19:07
@Christewart
Christewart requested a review from sedited July 29, 2026 19:07
@Christewart

Copy link
Copy Markdown
Contributor Author

@sedited I believe all your points are integrated into 1f05d8e

def cltv_validate(tx, height):
# Modify the signature in vin 0 and nSequence/nLockTime of the tx to pass CLTV
scheme = [[CScriptNum(height), OP_CHECKLOCKTIMEVERIFY, OP_DROP], 0, height]
scheme = [[CScriptNum.encode(CScriptNum(height))[1:], OP_CHECKLOCKTIMEVERIFY, OP_DROP], 0, height]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line changed? Seems like it is not actually changing anything behaviour wise.



CLTV_HEIGHT = 111
CLTV_HEIGHT = 112

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test passes if this line is left the same, so maybe this should not be changed?

self.log.info("Mining %d blocks", CLTV_HEIGHT - 2)
self.generate(wallet, 10)
self.generate(self.nodes[0], CLTV_HEIGHT - 2 - 10)
num_utxos = 12

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why twelve, doesn't this test only need eleven?

tip = block.hash_int

current_time = int(time.time())
locktime = current_time + (60 * 60) # 1 hour

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might it be better to derive this from the mediantime directly? Something like:

locktime = self.nodes[0].getblockheader(block.hash_hex)['mediantime'] + (60 * 60) # 1 hour

Comment on lines +212 to +214
block2 = create_block(tip, height=CLTV_HEIGHT + 1, ntime=locktime, version=4)
block2.vtx.append(spendtx)
block2.hashMerkleRoot = block2.calc_merkle_root()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: create_block has a txlist arg that this without having to do it manually.

Comment on lines +497 to +520
# Mine 6 blocks at UINT32_MAX - 1 so that MTP (the median of the last 11 blocks) becomes UINT32_MAX - 1
for _ in range(6):
block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX - 1)
block.solve()
self.send_blocks([block])
self.tip = block.hash_int
self.tipheight += 1
assert_equal(self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())['mediantime'], UINT32_MAX - 1)

# UINT32_MAX - 2 is the highest locktime that can be included in the next block:
# BIP113 requires nLockTime to be strictly less than the MTP of the previous block
max_locktime_tx = mtp_edge_case_tx(mtp_edge_case_inputs[0], UINT32_MAX - 2)
block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX, txlist=[max_locktime_tx])
block.solve()
self.send_blocks([block])
self.tip = block.hash_int
self.tipheight += 1

# A transaction locked to UINT32_MAX itself is never final: MTP can never exceed
# UINT32_MAX, so "nLockTime < MTP" can never be satisfied for nLockTime == UINT32_MAX
never_final_tx = mtp_edge_case_tx(mtp_edge_case_inputs[1], UINT32_MAX)
block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX, txlist=[never_final_tx])
block.solve()
self.send_blocks([block], success=False, reject_reason='bad-txns-nonfinal')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked at the latest version here and I think this is still not addressed, but my comment was not really helpful. The interesting case in my eyes is that on the final block, a UINT32_MAX - 1 timelocked transaction is considered standard and enters the mempool, but can't ever be mined. How about adding this:

diff --git a/test/functional/feature_csv_activation.py b/test/functional/feature_csv_activation.py
index 410278f407b..943890d81bc 100755
--- a/test/functional/feature_csv_activation.py
+++ b/test/functional/feature_csv_activation.py
@@ -61,7 +61,7 @@ from test_framework.wallet import (
 )
 
 TESTING_TX_COUNT = 83  # Number of testing transactions: 1 BIP113 tx, 16 BIP68 txs, 66 BIP112 txs (see comments above)
-MTP_EDGE_CASE_INPUT_COUNT = 2  # Extra inputs for the "median-time-past can never reach UINT32_MAX" BIP113 test
+MTP_EDGE_CASE_INPUT_COUNT = 3 # Extra inputs for the "median-time-past can never reach UINT32_MAX" BIP113 test
 COINBASE_BLOCK_COUNT = TESTING_TX_COUNT + MTP_EDGE_CASE_INPUT_COUNT  # Number of coinbase blocks we need to generate as inputs for our txs
 BASE_RELATIVE_LOCKTIME = 10
 SEQ_DISABLE_FLAG = 1 << 31
@@ -520,6 +520,10 @@ class BIP68_112_113Test(BitcoinTestFramework):
         block.solve()
         self.send_blocks([block], success=False, reject_reason='bad-txns-nonfinal')
 
+        # A transaction locked to UINT32_MAX - 1 is not final until the last block is mined
+        max_locktime_standard_tx = mtp_edge_case_tx(mtp_edge_case_inputs[2], UINT32_MAX - 1)
+        assert_raises_rpc_error(-26, 'non-final', self.nodes[0].sendrawtransaction, max_locktime_standard_tx.serialize().hex())
+
         # max out MTP on the network to UINT32_MAX, so that the next block's nTime can't exceed it (and thus any block will be rejected for time-too-old)
         while self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())['mediantime'] < UINT32_MAX:
             block = create_block(self.tip, height=self.tipheight + 1, ntime=UINT32_MAX)
@@ -530,6 +534,10 @@ class BIP68_112_113Test(BitcoinTestFramework):
 
         assert_equal(self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())['mediantime'], UINT32_MAX)
 
+        # The transaction locked to UINT32_MAX - 1 is now final and enters the mempool, but there can't be another block, so it won't be mined
+        self.nodes[0].sendrawtransaction(max_locktime_standard_tx.serialize().hex())
+        assert max_locktime_standard_tx.txid_hex in self.nodes[0].getrawmempool()
+
         # submitting a transaction to the mempool with nLockTime at UINT32_MAX fails
         assert_raises_rpc_error(-26, 'non-final', self.nodes[0].sendrawtransaction, never_final_tx.serialize().hex())

@sedited

sedited commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

@Christewart can you follow up here?

@fanquake

fanquake commented Dec 1, 2026

Copy link
Copy Markdown
Member

Christewart can you follow up here?

@Christewart interested in taking the review here?

@Christewart

Copy link
Copy Markdown
Contributor Author

I don't plan on picking this up. I feel like we are going in circles.

@Christewart Christewart closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants