mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 15:02:17 +01:00
Adding invariant stating the amount for the server output must be >= Policy.dustThreshold
This commit is contained in:
parent
4c304d6dfd
commit
488586914c
1 changed files with 7 additions and 1 deletions
|
@ -33,8 +33,14 @@ trait Policy {
|
|||
/** The number of confirmations for a payment to be considered as accepted */
|
||||
def confirmations: Long = 6
|
||||
|
||||
def minPaymentChannelAmount: CurrencyUnit = Satoshis(Int64(10000))
|
||||
/** Minimum amount of [[org.bitcoins.core.currency.CurrencyUnit]]
|
||||
* lock in a [[org.bitcoins.core.channels.PaymentChannel]]
|
||||
* Currently set to 1 mBTC
|
||||
* */
|
||||
def minPaymentChannelAmount: CurrencyUnit = Satoshis(Int64(1000000))
|
||||
|
||||
/** The minimum amount of satoshis we can spend to an output */
|
||||
def dustThreshold: CurrencyUnit = Satoshis(Int64(1000))
|
||||
}
|
||||
|
||||
object Policy extends Policy
|
||||
|
|
Loading…
Add table
Reference in a new issue