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

Method IsCoinBase

src/primitives/transaction.h:564–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562 unsigned int GetTotalSize() const;
563
564 bool IsCoinBase() const
565 {
566 return (vin.size() == 1 && vin[0].prevout.IsNull());
567 }
568
569 friend bool operator==(const CTransaction& a, const CTransaction& b)
570 {

Callers 3

AreInputsStandardFunction · 0.45
IsWitnessStandardFunction · 0.45

Calls 2

sizeMethod · 0.45
IsNullMethod · 0.45

Tested by

no test coverage detected