Skip to content

Commit 0739607

Browse files
authored
Merge branch 'develop' into chore/signer-coordinator-logging
2 parents c655cd1 + 3fa16aa commit 0739607

File tree

106 files changed

+8973
-10352
lines changed

Some content is hidden

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

106 files changed

+8973
-10352
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ 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).
1819
- Logging improvements:
1920
- P2P logs now includes a reason for dropping a peer or neighbor

clarity/src/vm/contexts.rs

Lines changed: 5 additions & 1 deletion
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>(
@@ -1639,7 +1643,7 @@ impl<'a, 'hooks> GlobalContext<'a, 'hooks> {
16391643
);
16401644
f(&mut exec_env)
16411645
};
1642-
self.roll_back().map_err(crate::vm::errors::Error::from)?;
1646+
self.roll_back()?;
16431647

16441648
match result {
16451649
Ok(return_value) => Ok(return_value),

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)