Skip to content

Commit def85cb

Browse files
committed
merged with develop
2 parents 0e7ae1b + bd45dd7 commit def85cb

File tree

24 files changed

+4519
-531
lines changed

24 files changed

+4519
-531
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
1414

1515
### Changed
1616

17+
- Implement faster cost tracker for default cost functions in Clarity
1718
- Miner will stop waiting for signatures on a block if the Stacks tip advances (causing the block it had proposed to be invalid).
19+
- By default, miners will wait for a new tenure to start for a configurable amount of time after receiving a burn block before
20+
submitting a block commit. This will reduce the amount of RBF transactions miners are expected to need.
1821
- Logging improvements:
1922
- P2P logs now includes a reason for dropping a peer or neighbor
2023
- Improvements to how a PeerAddress is logged (human readable format vs hex)
24+
- Add weight threshold and percentages to `StackerDBListener` logs
2125
- Signer will not allow reorg if more than one block in the current tenure has already been globally approved
2226

27+
2328
### Fixed
2429

2530
- Error responses to /v2/transactions/fees are once again expressed as JSON ([#4145](https://github.com/stacks-network/stacks-core/issues/4145)).

clarity/src/vm/contexts.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,10 @@ impl<'a, 'hooks> OwnedEnvironment<'a, 'hooks> {
715715
})
716716
}
717717

718+
pub fn is_mainnet(&self) -> bool {
719+
self.context.mainnet
720+
}
721+
718722
#[cfg(any(test, feature = "testing"))]
719723
pub fn stx_faucet(&mut self, recipient: &PrincipalData, amount: u128) {
720724
self.execute_in_env::<_, _, crate::vm::errors::Error>(

clarity/src/vm/costs/cost_functions.rs

Lines changed: 326 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)