diff --git a/src/account/TransactionManager.cpp b/src/account/TransactionManager.cpp index 047e7d83..deeafea5 100644 --- a/src/account/TransactionManager.cpp +++ b/src/account/TransactionManager.cpp @@ -196,6 +196,7 @@ namespace sgns void TransactionManager::EnqueueTransaction( std::shared_ptr element ) { std::lock_guard lock( mutex_m ); + this->account_m->nonce += 1; out_transactions.emplace_back( std::move( element ) ); } @@ -234,7 +235,6 @@ namespace sgns data_transaction.put( transaction->SerializeByteVector() ); db_m->Put( { transaction_path }, data_transaction ); - account_m->nonce++; auto maybe_last_hash = block_storage_m->getLastFinalizedBlockHash(); auto maybe_last_header = block_storage_m->getBlockHeader( maybe_last_hash.value() );