Add accessor for sigops-adjusted weight

This commit is contained in:
Suhas Daftuar committed 2025-11-10 16:01:34 -05:00
1 parent 1bf3b51396
commit d5ed9cb3eb
1 file changed
+1
+1
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; }