Function NodeLedger.getDoubleSpentHighestFee

Returns the highest fee among all the transactions which would be considered as a double spent, if tx transaction was in the transaction pool.

std.typecons.Nullable!(agora.common.Amount.Amount) getDoubleSpentHighestFee (
  in ref const(Transaction) tx
) @safe;

If adding tx to the transaction pool would not result in double spent transaction, then the return value is Nullable!Amount().

Parameters

NameDescription
tx transaction

Returns

the highest fee among all the transactions which would be considered as a double spend, if tx transaction was in the transaction pool.