File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
testnet/stacks-node/src/tests Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,13 @@ lazy_static! {
167
167
StacksEpoch {
168
168
epoch_id: StacksEpochId :: Epoch25 ,
169
169
start_height: 201 ,
170
- end_height: 251 ,
170
+ end_height: 231 ,
171
171
block_limit: HELIUM_BLOCK_LIMIT_20 . clone( ) ,
172
172
network_epoch: PEER_VERSION_EPOCH_2_5
173
173
} ,
174
174
StacksEpoch {
175
175
epoch_id: StacksEpochId :: Epoch30 ,
176
- start_height: 251 ,
176
+ start_height: 231 ,
177
177
end_height: STACKS_EPOCH_MAX ,
178
178
block_limit: HELIUM_BLOCK_LIMIT_20 . clone( ) ,
179
179
network_epoch: PEER_VERSION_EPOCH_3_0
Original file line number Diff line number Diff line change 13
13
// You should have received a copy of the GNU General Public License
14
14
// along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
16
- use std:: str:: FromStr ;
17
16
use std:: ops:: Add ;
17
+ use std:: str:: FromStr ;
18
18
use std:: sync:: atomic:: Ordering ;
19
19
use std:: time:: { Duration , Instant } ;
20
20
use std:: { env, thread} ;
@@ -1566,6 +1566,8 @@ fn empty_sortition() {
1566
1566
// make the duration long enough that the miner will be marked as malicious
1567
1567
config. block_proposal_timeout = block_proposal_timeout;
1568
1568
} ,
1569
+ |_| { } ,
1570
+ & [ ] ,
1569
1571
) ;
1570
1572
let http_origin = format ! ( "http://{}" , & signer_test. running_nodes. conf. node. rpc_bind) ;
1571
1573
let short_timeout = Duration :: from_secs ( 20 ) ;
@@ -1709,10 +1711,23 @@ fn mock_sign_epoch_25() {
1709
1711
let send_amt = 100 ;
1710
1712
let send_fee = 180 ;
1711
1713
1712
- let mut signer_test: SignerTest < SpawnedSigner > = SignerTest :: new (
1714
+ let mut signer_test: SignerTest < SpawnedSigner > = SignerTest :: new_with_config_modifications (
1713
1715
num_signers,
1714
1716
vec ! [ ( sender_addr. clone( ) , send_amt + send_fee) ] ,
1715
1717
Some ( Duration :: from_secs ( 5 ) ) ,
1718
+ |_| { } ,
1719
+ |node_config| {
1720
+ let epochs = node_config. burnchain . epochs . as_mut ( ) . unwrap ( ) ;
1721
+ for epoch in epochs. iter_mut ( ) {
1722
+ if epoch. epoch_id == StacksEpochId :: Epoch25 {
1723
+ epoch. end_height = 251 ;
1724
+ }
1725
+ if epoch. epoch_id == StacksEpochId :: Epoch30 {
1726
+ epoch. start_height = 251 ;
1727
+ }
1728
+ }
1729
+ } ,
1730
+ & [ ] ,
1716
1731
) ;
1717
1732
1718
1733
let epochs = signer_test
You can’t perform that action at this time.
0 commit comments