wip: added nonces and test

This commit is contained in:
Sergio Chouhy
2025-07-28 16:09:03 -03:00
parent 484c22b649
commit f21c0df652
8 changed files with 45 additions and 1 deletions
+1
View File
@@ -337,6 +337,7 @@ mod tests {
secret_r: [0; 32],
sc_addr: "sc_addr".to_string(),
state_changes: (serde_json::Value::Null, 0),
nonce: 1,
};
Transaction::new(body, SignaturePrivateKey::random(&mut rng))
}
+8
View File
@@ -274,6 +274,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
nonce: 1,
};
let key_to_sign_transaction = account.key_holder.get_pub_account_signing_key();
@@ -370,6 +371,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
nonce: 1,
};
let key_to_sign_transaction = account.key_holder.get_pub_account_signing_key();
@@ -484,6 +486,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
nonce: 1
};
let key_to_sign_transaction = account.key_holder.get_pub_account_signing_key();
@@ -629,6 +632,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
nonce: 1,
};
let key_to_sign_transaction = account.key_holder.get_pub_account_signing_key();
@@ -757,6 +761,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
nonce: 1
};
let key_to_sign_transaction = account.key_holder.get_pub_account_signing_key();
@@ -846,6 +851,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
nonce: 1
};
let key_to_sign_transaction = account.key_holder.get_pub_account_signing_key();
@@ -992,6 +998,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
1,
);
tx.log();
@@ -1548,6 +1555,7 @@ impl NodeCore {
secret_r,
sc_addr,
state_changes,
nonce: 1,
};
let key_to_sign_transaction = account.key_holder.get_pub_account_signing_key();