Function getTotalFee

Calculate total fee from the given update and payment total

Amount getTotalFee (
  ChannelUpdate update,
  Amount total
) nothrow @safe;

Parameters

NameDescription
update latest update for the channel
total payment total

Returns

Total Amount of required fee