MCPcopy Create free account
hub / github.com/LUX-Core/lux / addBlock

Method addBlock

src/cpp-ethereum/libethereum/ClientTest.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool ClientTest::addBlock(string const& _rlp)
71{
72 if (auto h = m_host.lock())
73 h->noteNewBlocks();
74
75 bytes rlpBytes = fromHex(_rlp, WhenError::Throw);
76 RLP blockRLP(rlpBytes);
77 return (m_bq.import(blockRLP.data(), true) == ImportResult::Success);
78}
79
80void ClientTest::modifyTimestamp(u256 const& _timestamp)
81{

Callers 1

test_addBlockMethod · 0.45

Calls 4

lockMethod · 0.80
noteNewBlocksMethod · 0.80
importMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected