コード例 #1
0
ファイル: Schema.cpp プロジェクト: FrictionlessCoin/CoinVault
void Tx::set(Coin::Transaction coin_tx, uint32_t timestamp, status_t status)
{
    LOGGER(trace) << "Tx::set - fromCoinClasses(coin_tx);" << std::endl;
    fromCoinClasses(coin_tx);

    timestamp_ = timestamp;

    if (missingSigCount())  { status_ = UNSIGNED; }
    else                    { status_ = status; hash_ = coin_tx.getHashLittleEndian(); }

    coin_tx.clearScriptSigs();
    unsigned_hash_ = coin_tx.getHashLittleEndian();
}
コード例 #2
0
ファイル: Schema.cpp プロジェクト: ciphrex/mSIGNA
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();
}