Beispiel #1
0
void Tx::set(Coin::Transaction coin_tx, uint32_t timestamp, status_t status, bool conflicting, bool checksigs)
{
    //LOGGER(trace) << "Tx::set - fromCoinCore(coin_tx);" << std::endl;
    fromCoinCore(coin_tx);

    timestamp_ = timestamp;

    if (checksigs && missingSigCount()) { status_ = UNSIGNED; }
    else                                { status_ = status; hash_ = coin_tx.hash(); }

    conflicting_ = conflicting;

    coin_tx.clearScriptSigs();
    unsigned_hash_ = coin_tx.hash();
    updateTotals();
}
Beispiel #2
0
void SynchedVault::sendTx(Coin::Transaction& coin_tx)
{
    uchar_vector hash = coin_tx.hash();
    LOGGER(trace) << "SynchedVault::sendTx(" << hash.getHex() << ")" << std::endl;
    if (!m_bConnected) throw std::runtime_error("Not connected.");

    m_networkSync.sendTx(coin_tx);
    m_networkSync.getTx(hash);
}