MCPcopy Create free account
hub / github.com/citp/BlockSci / serializeInputImp

Method serializeInputImp

tools/parser/address_writer.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void AddressWriter::serializeInputImp(const ScriptInput<AddressType::PUBKEYHASH> &input, ScriptFile<DedupAddressType::PUBKEY> &file) {
69 auto data = file[input.scriptNum - 1];
70 if (!data->hasPubkey) {
71 std::copy(input.data.pubkey.begin(), input.data.pubkey.end(), data->pubkey.begin());
72 data->hasPubkey = true;
73 }
74}
75
76void AddressWriter::serializeInputImp(const ScriptInput<AddressType::WITNESS_PUBKEYHASH> &input, ScriptFile<DedupAddressType::PUBKEY> &file) {
77 auto data = file[input.scriptNum - 1];

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
addressMethod · 0.45
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected