Skip to content

Commit 7eb29f3

Browse files
committed
v1.3.5
1 parent 61ad521 commit 7eb29f3

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

ex/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule Ama.MixProject do
66
def project do
77
[
88
app: @app,
9-
version: "1.3.4",
9+
version: "1.3.5",
1010
elixir: ">= 1.19.0",
1111
start_permanent: Mix.env() == :prod,
1212
deps: deps(),

ex/native/rdb/src/consensus/bic/epoch.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,9 @@ pub fn call_slash_trainer(env: &mut crate::consensus::consensus_apply::ApplyEnv,
259259
let mask = args[4].to_vec();
260260

261261
if epoch != env.caller_env.entry_epoch { panic_any("invalid_epoch") }
262-
println!("a{}", env.exec_left);
262+
263263
let mut trainers = kv_get_trainers(env, env.caller_env.entry_height);
264264
if !trainers.iter().any(|v| v.as_slice() == malicious_pk) { panic_any("invalid_trainer_pk") }
265-
println!("b{}", env.exec_left);
266265

267266
let signers = consensus::aggsig::unmask_trainers(&trainers, &mask, mask_size as usize);
268267
let consensus_pct = signers.len() as f64 / trainers.len() as f64;
@@ -279,12 +278,7 @@ println!("a{}", env.exec_left);
279278
trainers.retain(|pk| pk.as_slice() != malicious_pk);
280279
let term_trainers = consensus::bic::list_of_binaries_to_vecpak(trainers);
281280
let height_next = format!("{:012}", env.caller_env.entry_height.saturating_add(1)).into_bytes();
282-
println!("c{}", env.exec_left);
283-
println!("zz{}", term_trainers.as_slice().len());
284-
285281
kv_put(env, &bcat(&[b"bic:epoch:validators:height:", &height_next]), term_trainers.as_slice());
286-
println!("d{}", env.exec_left);
287-
288282
}
289283

290284
pub fn next(env: &mut ApplyEnv) {

ex/native/rdb/src/consensus/bic/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub const AMA_1_DOLLAR: i128 = 1_000_000_000;
88
pub const AMA_10_CENT: i128 = 100_000_000;
99
pub const AMA_1_CENT: i128 = 10_000_000;
1010

11-
pub const RESERVE_AMA_PER_TX: i128 = AMA_10_CENT; //minimum balance required per account per TX in a entry
11+
pub const RESERVE_AMA_PER_TX: i128 = AMA_10_CENT; //reserved for exec balance (refunded at end of TX execution)
1212

1313
pub const COST_PER_BYTE_HISTORICAL: i128 = 6_666; //cost to increase the ledger size
1414
pub const COST_PER_BYTE_STATE: i128 = 16_666; //cost to grow the contract state

ex/native/rdb/src/consensus/consensus_kv.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pub fn exec_budget_decr(env: &mut ApplyEnv, amount: i128) {
1212
}
1313

1414
if env.caller_env.entry_height >= protocol::FORKHEIGHT && env.exec_track {
15-
println!("cost {}", amount);
1615
match env.exec_left.checked_sub(amount) {
1716
Some(new_budget) => {
1817
if new_budget < 0 {

0 commit comments

Comments
 (0)