Skip to content

Commit 5066d9b

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feat/dry-run-signer
2 parents 5456caa + 2233e5e commit 5066d9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+471
-750
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
- tests::signer::v0::signing_in_0th_tenure_of_reward_cycle
125125
- tests::signer::v0::continue_after_tenure_extend
126126
- tests::signer::v0::tenure_extend_after_idle_signers
127+
- tests::signer::v0::tenure_extend_with_other_transactions
127128
- tests::signer::v0::tenure_extend_after_idle_miner
128129
- tests::signer::v0::tenure_extend_after_failed_miner
129130
- tests::signer::v0::tenure_extend_succeeds_after_rejected_attempt

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
88
## [Unreleased]
99

1010
### Added
11-
- Add `dry_run` configuration option to `stacks-signer` config toml. Dry run mode will
12-
run the signer binary as if it were a registered signer. Instead of broadcasting
11+
- Add `dry_run` configuration option to `stacks-signer` config toml. Dry run mode will
12+
run the signer binary as if it were a registered signer. Instead of broadcasting
1313
`StackerDB` messages, it logs `INFO` messages. Other interactions with the `stacks-node`
1414
behave normally (e.g., submitting validation requests, submitting finished blocks). A
1515
dry run signer will error out if the supplied key is actually a registered signer.
1616

17+
### Changed
18+
19+
- Miner will include other transactions in blocks with tenure extend transactions (#5760)
20+
1721
## [3.1.0.0.4]
1822

1923
### Added

stacks-common/src/address/b58.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
//! Base58 encoder and decoder
1616
17-
use std::{error, fmt, str};
17+
use std::{fmt, str};
1818

1919
use crate::address::Error;
2020
use crate::util::hash::DoubleSha256;

stacks-common/src/address/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::{error, fmt};
1919
use sha2::{Digest, Sha256};
2020

2121
use crate::deps_common::bitcoin::blockdata::opcodes::All as btc_opcodes;
22-
use crate::deps_common::bitcoin::blockdata::script::{Builder, Instruction, Script};
22+
use crate::deps_common::bitcoin::blockdata::script::Builder;
2323
use crate::types::PublicKey;
2424
use crate::util::hash::Hash160;
2525

@@ -220,7 +220,6 @@ pub fn public_keys_to_address_hash<K: PublicKey>(
220220
mod test {
221221
use super::*;
222222
use crate::util::hash::*;
223-
use crate::util::log;
224223
use crate::util::secp256k1::Secp256k1PublicKey as PubKey;
225224

226225
struct PubkeyFixture {

stacks-common/src/bitvec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ mod test {
260260

261261
use super::BitVec;
262262
use crate::codec::StacksMessageCodec;
263-
use crate::util::hash::to_hex;
264263

265264
fn check_set_get(mut input: BitVec<{ u16::MAX }>) {
266265
let original_input = input.clone();

stacks-common/src/deps_common/bitcoin/blockdata/block.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use crate::deps_common::bitcoin::blockdata::transaction::Transaction;
2525
use crate::deps_common::bitcoin::network::constants::Network;
2626
use crate::deps_common::bitcoin::network::encodable::VarInt;
2727
use crate::deps_common::bitcoin::network::serialize::BitcoinHash;
28-
use crate::deps_common::bitcoin::util;
2928
use crate::deps_common::bitcoin::util::hash::Sha256dHash;
3029
use crate::deps_common::bitcoin::util::Error;
3130
use crate::deps_common::bitcoin::util::Error::{SpvBadProofOfWork, SpvBadTarget};

stacks-common/src/deps_common/bitcoin/blockdata/script.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use std::mem::size_of;
2828
use std::{error, fmt};
2929

30-
use serde;
3130
use sha2::{Digest, Sha256};
3231

3332
use crate::deps_common::bitcoin::blockdata::opcodes;

stacks-common/src/deps_common/bitcoin/blockdata/transaction.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use crate::deps_common::bitcoin::network::serialize::{
3434
self, serialize, BitcoinHash, SimpleDecoder, SimpleEncoder,
3535
};
3636
use crate::deps_common::bitcoin::util::hash::Sha256dHash;
37-
use crate::util::hash::to_hex;
3837

3938
/// A reference to a transaction output
4039
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)]
@@ -675,7 +674,7 @@ impl SigHashType {
675674

676675
#[cfg(test)]
677676
mod tests {
678-
use super::{SigHashType, Transaction, TxIn};
677+
use super::{Transaction, TxIn};
679678
use crate::deps_common;
680679
use crate::deps_common::bitcoin::blockdata::script::Script;
681680
use crate::deps_common::bitcoin::network::serialize::{deserialize, BitcoinHash};
@@ -690,7 +689,6 @@ mod tests {
690689

691690
#[test]
692691
fn test_is_coinbase() {
693-
use crate::deps_common::bitcoin::blockdata::constants;
694692
use crate::deps_common::bitcoin::network::constants::Network;
695693

696694
let genesis = deps_common::bitcoin::blockdata::constants::genesis_block(Network::Bitcoin);

stacks-common/src/deps_common/bitcoin/network/message_network.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
//!
2020
2121
use crate::deps_common::bitcoin::network::address::Address;
22-
use crate::deps_common::bitcoin::network::constants;
23-
use crate::util;
2422

2523
// Some simple messages
2624

stacks-common/src/deps_common/bitcoin/util/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use std::char::from_digit;
1919
use std::cmp::min;
2020
use std::io::{Cursor, Write};
21-
use std::{error, fmt, mem};
21+
use std::{fmt, mem};
2222

2323
use ripemd::Ripemd160;
2424
#[cfg(feature = "serde")]

0 commit comments

Comments
 (0)