mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-20 10:13:26 +01:00
Adding payment_channel invariants, now double check the fee and that the full amounts add up
This commit is contained in:
parent
f132c3b959
commit
8af8cff73c
@ -44,6 +44,9 @@ trait Policy {
|
|||||||
|
|
||||||
/** A default fee to use per byte on the bitcoin network */
|
/** A default fee to use per byte on the bitcoin network */
|
||||||
def defaultFee: CurrencyUnit = Satoshis(Int64(50))
|
def defaultFee: CurrencyUnit = Satoshis(Int64(50))
|
||||||
|
|
||||||
|
/** Max fee for a transaction is set to 10 mBTC right now */
|
||||||
|
def maxFee: CurrencyUnit = Satoshis(Int64(10)) * CurrencyUnits.oneMBTC
|
||||||
}
|
}
|
||||||
|
|
||||||
object Policy extends Policy
|
object Policy extends Policy
|
||||||
|
Loading…
Reference in New Issue
Block a user