MCPcopy Create free account
hub / github.com/ElementsProject/elements / Write

Method Write

src/policy/fees.cpp:377–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377void TxConfirmStats::Write(CAutoFile& fileout) const
378{
379 fileout << Using<EncodedDoubleFormatter>(decay);
380 fileout << scale;
381 fileout << Using<VectorFormatter<EncodedDoubleFormatter>>(m_feerate_avg);
382 fileout << Using<VectorFormatter<EncodedDoubleFormatter>>(txCtAvg);
383 fileout << Using<VectorFormatter<VectorFormatter<EncodedDoubleFormatter>>>(confAvg);
384 fileout << Using<VectorFormatter<VectorFormatter<EncodedDoubleFormatter>>>(failAvg);
385}
386
387void TxConfirmStats::Read(CAutoFile& filein, int nFileVersion, size_t numBuckets)
388{

Callers 15

CHMAC_SHA512Method · 0.45
FinalizeMethod · 0.45
CHMAC_SHA256Method · 0.45
FinalizeMethod · 0.45
CHMAC_SHA256Class · 0.45
CHMAC_SHA512Class · 0.45
CHKDF_HMAC_SHA256_L32Method · 0.45
Expand32Method · 0.45
InferScriptFunction · 0.45
EvalScriptFunction · 0.45

Calls

no outgoing calls

Tested by 15

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
MerkleComputationFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
TestBuilderMethod · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
TestVectorFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36