mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
net: Pass CConnection to wallet rather than using the global
This commit is contained in:
@@ -328,7 +328,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
|
||||
}
|
||||
|
||||
CReserveKey *keyChange = transaction.getPossibleKeyChange();
|
||||
if(!wallet->CommitTransaction(*newTx, *keyChange))
|
||||
if(!wallet->CommitTransaction(*newTx, *keyChange, g_connman.get()))
|
||||
return TransactionCommitFailed;
|
||||
|
||||
CTransaction* t = (CTransaction*)newTx;
|
||||
|
||||
Reference in New Issue
Block a user