Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | #endif | ||||
vOrderForm.emplace_back("Message", rcp.message.toStdString()); | vOrderForm.emplace_back("Message", rcp.message.toStdString()); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
auto &newTx = transaction.getWtx(); | auto &newTx = transaction.getWtx(); | ||||
std::string rejectReason; | std::string rejectReason; | ||||
if (!newTx->commit({} /* mapValue */, std::move(vOrderForm), | if (!newTx->commit({} /* mapValue */, std::move(vOrderForm), | ||||
{} /* fromAccount */, rejectReason)) { | rejectReason)) { | ||||
return SendCoinsReturn(TransactionCommitFailed, | return SendCoinsReturn(TransactionCommitFailed, | ||||
QString::fromStdString(rejectReason)); | QString::fromStdString(rejectReason)); | ||||
} | } | ||||
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION); | CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION); | ||||
ssTx << newTx->get(); | ssTx << newTx->get(); | ||||
transaction_array.append(&(ssTx[0]), ssTx.size()); | transaction_array.append(&(ssTx[0]), ssTx.size()); | ||||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |