Correct publication of Completed Tributary TXs

This commit is contained in:
Luke Parker
2023-09-02 00:50:54 -04:00
parent fddc605c65
commit cd4c3a6c88
3 changed files with 13 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ impl<D: Db, T: TransactionTrait, P: P2p> Tributary<D, T, P> {
self.network.blockchain.read().await.next_nonce(signer)
}
// Returns if the transaction was valid.
// Returns if the transaction was new and valid.
// Safe to be &self since the only meaningful usage of self is self.network.blockchain which
// successfully acquires its own write lock
pub async fn add_transaction(&self, tx: T) -> bool {