mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-08-25 06:41:13 +00:00
fix: comments fix 1
This commit is contained in:
@@ -5,9 +5,9 @@ use anyhow::Result;
|
||||
use block_store::NodeBlockStore;
|
||||
use common::{
|
||||
block::Block,
|
||||
execution_input::PublicNativeTokenSend,
|
||||
merkle_tree_public::merkle_tree::{PublicTransactionMerkleTree, UTXOCommitmentsMerkleTree},
|
||||
nullifier::UTXONullifier,
|
||||
public_transfer_receipts::PublicNativeTokenSend,
|
||||
utxo_commitment::UTXOCommitment,
|
||||
};
|
||||
use k256::AffinePoint;
|
||||
@@ -166,10 +166,10 @@ impl NodeChainStore {
|
||||
if let Ok(transfer) = native_transfer {
|
||||
if let Some(acc_sender) = self.acc_map.get_mut(&transfer.from) {
|
||||
//Can panic, we depend on sequencer maintaining chain consistency here
|
||||
acc_sender.balance -= transfer.moved_balance;
|
||||
acc_sender.balance -= transfer.balance_to_move;
|
||||
|
||||
if let Some(acc_rec) = self.acc_map.get_mut(&transfer.to) {
|
||||
acc_rec.balance += transfer.moved_balance;
|
||||
acc_rec.balance += transfer.balance_to_move;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ use std::sync::{
|
||||
};
|
||||
|
||||
use common::{
|
||||
public_transfer_receipts::PublicNativeTokenSend, transaction::Transaction, ExecutionFailureKind,
|
||||
execution_input::PublicNativeTokenSend, transaction::Transaction, ExecutionFailureKind,
|
||||
};
|
||||
|
||||
use accounts::{
|
||||
@@ -955,7 +955,7 @@ impl NodeCore {
|
||||
&self,
|
||||
from: AccountAddress,
|
||||
to: AccountAddress,
|
||||
moved_balance: u64,
|
||||
balance_to_move: u64,
|
||||
) -> Result<SendTxResponse, ExecutionFailureKind> {
|
||||
let tx_roots = self.get_roots().await;
|
||||
|
||||
@@ -982,7 +982,7 @@ impl NodeCore {
|
||||
serde_json::to_vec(&PublicNativeTokenSend {
|
||||
from,
|
||||
to,
|
||||
moved_balance,
|
||||
balance_to_move,
|
||||
})
|
||||
.unwrap(),
|
||||
commitment,
|
||||
|
||||
Reference in New Issue
Block a user