Add accessor for sigops-adjusted weight

This commit is contained in:
Suhas Daftuar
2025-02-04 14:54:20 -05:00
parent 1bf3b51396
commit d5ed9cb3eb

View File

@@ -138,6 +138,7 @@ public:
{
return GetVirtualTransactionSize(nTxWeight, sigOpCost, ::nBytesPerSigOp);
}
int32_t GetAdjustedWeight() const { return GetSigOpsAdjustedWeight(nTxWeight, sigOpCost, ::nBytesPerSigOp); }
int32_t GetTxWeight() const { return nTxWeight; }
std::chrono::seconds GetTime() const { return std::chrono::seconds{nTime}; }
unsigned int GetHeight() const { return entryHeight; }