Skip to content

Commit 41c274d

Browse files
committed
Allow token transfers in tenure change blocks due to phantom unlock txs
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 0ee5d7c commit 41c274d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl TestSigningChannel {
241241

242242
/// Assert that the block events captured by the test observer
243243
/// all match the miner heuristic of *exclusively* including the
244-
/// tenure change transaction in tenure changing blocks.
244+
/// tenure change transaction and token transfers in tenure changing blocks.
245245
pub fn check_nakamoto_empty_block_heuristics() {
246246
let blocks = test_observer::get_blocks();
247247
for block in blocks.iter() {
@@ -257,10 +257,12 @@ pub fn check_nakamoto_empty_block_heuristics() {
257257
let only_coinbase_and_tenure_change = txs.iter().all(|tx| {
258258
matches!(
259259
tx.payload,
260-
TransactionPayload::TenureChange(_) | TransactionPayload::Coinbase(..)
260+
TransactionPayload::TenureChange(_)
261+
| TransactionPayload::Coinbase(..)
262+
| TransactionPayload::TokenTransfer(..)
261263
)
262264
});
263-
assert!(only_coinbase_and_tenure_change, "Nakamoto blocks with a tenure change in them should only have coinbase or tenure changes");
265+
assert!(only_coinbase_and_tenure_change, "Nakamoto blocks with a tenure change in them should only have coinbase, tenure changes, or token transfers.");
264266
}
265267
}
266268
}

0 commit comments

Comments
 (0)