Skip to content

Commit 4bd2fcc

Browse files
committed
Update WalletGreen
1 parent 0762511 commit 4bd2fcc

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Wallet/WalletGreen.cpp

+1-16
Original file line numberDiff line numberDiff line change
@@ -1911,9 +1911,6 @@ namespace cn
19111911

19121912
size_t WalletGreen::transfer(const TransactionParameters &transactionParameters, crypto::SecretKey &transactionSK)
19131913
{
1914-
tools::ScopeExit releaseContext([this]
1915-
{ m_dispatcher.yield(); });
1916-
19171914
platform_system::EventLock lk(m_readyEvent);
19181915

19191916
throwIfNotInitialized();
@@ -2033,9 +2030,6 @@ namespace cn
20332030

20342031
size_t WalletGreen::makeTransaction(const TransactionParameters &sendingTransaction)
20352032
{
2036-
tools::ScopeExit releaseContext([this]
2037-
{ m_dispatcher.yield(); });
2038-
20392033
platform_system::EventLock lk(m_readyEvent);
20402034

20412035
throwIfNotInitialized();
@@ -2087,10 +2081,6 @@ namespace cn
20872081

20882082
void WalletGreen::rollbackUncommitedTransaction(size_t transactionId)
20892083
{
2090-
tools::ScopeExit releaseContext([this] {
2091-
m_dispatcher.yield();
2092-
});
2093-
20942084
platform_system::EventLock lk(m_readyEvent);
20952085

20962086
throwIfNotInitialized();
@@ -4025,13 +4015,8 @@ namespace cn
40254015
const std::vector<std::string> &sourceAddresses,
40264016
const std::string &destinationAddress)
40274017
{
4028-
4029-
size_t id = WALLET_INVALID_TRANSACTION_ID;
4030-
tools::ScopeExit releaseContext([this] {
4031-
m_dispatcher.yield();
4032-
});
4033-
40344018
platform_system::EventLock lk(m_readyEvent);
4019+
size_t id = WALLET_INVALID_TRANSACTION_ID;
40354020

40364021
throwIfNotInitialized();
40374022
throwIfTrackingMode();

0 commit comments

Comments
 (0)