Skip to content

Commit 25fd12c

Browse files
committed
Merge remote-tracking branch 'remotes/origin/fierce_fermion_6.0RC' into mainnet
2 parents 4b8ad78 + 43df264 commit 25fd12c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wallet/api/cli/api_cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ namespace
366366
auto data = msg.msg->get_body(size);
367367

368368
const auto asyncResult = _walletApi->executeAPIRequest(reinterpret_cast<const char*>(data), size);
369-
_keepalive = asyncResult == ApiSyncMode::RunningAsync;
369+
_keepalive = _keepalive || asyncResult == ApiSyncMode::RunningAsync;
370370
}
371371

372372
if (!_keepalive)

wallet/core/base_transaction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ namespace beam::wallet
182182

183183
bool BaseTransaction::CanCancel() const
184184
{
185-
TxStatus status = TxStatus::Failed;
185+
TxStatus status = TxStatus::Pending;
186186
GetParameter(TxParameterID::Status, status);
187187

188188
return status == TxStatus::InProgress || status == TxStatus::Pending;
189189
}
190190

191191
void BaseTransaction::Cancel()
192192
{
193-
TxStatus s = TxStatus::Failed;
193+
TxStatus s = TxStatus::Pending;
194194
GetParameter(TxParameterID::Status, s);
195195
// TODO: add CanCancel() method
196196
if (s == TxStatus::Pending || s == TxStatus::InProgress)

0 commit comments

Comments
 (0)