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

Method SetVersion

src/net.h:378–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 return (hdr.nMessageSize == nDataPos);
377 }
378 void SetVersion(int nVersionIn) override
379 {
380 hdrbuf.SetVersion(nVersionIn);
381 vRecv.SetVersion(nVersionIn);
382 }
383 int Read(Span<const uint8_t>& msg_bytes) override
384 {
385 int ret = in_data ? readData(msg_bytes) : readHeader(msg_bytes);

Callers

nothing calls this directly

Calls 1

SetVersionMethod · 0.45

Tested by

no test coverage detected