mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-20 02:11:40 +01:00
Made BitcoinFeeUnit extend FeeUnit and SatoshisPerByte, SatoshisPerVirutalByte extend BitcoinFeeUnit
This commit is contained in:
parent
b94af42dfa
commit
0a8c52562e
@ -19,9 +19,9 @@ sealed abstract class FeeUnit {
|
||||
* Meant to represent the different fee unit types for the bitcoin protocol
|
||||
* [[https://en.bitcoin.it/wiki/Weight_units]]
|
||||
*/
|
||||
sealed abstract class BitcoinFeeUnit
|
||||
sealed abstract class BitcoinFeeUnit extends FeeUnit
|
||||
|
||||
case class SatoshisPerByte(currencyUnit: CurrencyUnit) extends FeeUnit
|
||||
case class SatoshisPerByte(currencyUnit: CurrencyUnit) extends BitcoinFeeUnit
|
||||
|
||||
/**
|
||||
* A 'virtual byte' (also known as virtual size) is a new weight measurement that
|
||||
@ -29,4 +29,4 @@ case class SatoshisPerByte(currencyUnit: CurrencyUnit) extends FeeUnit
|
||||
* has the weight of 4 bytes in the [[org.bitcoins.core.protocol.transaction.TransactionWitness]]
|
||||
* of a [[org.bitcoins.core.protocol.transaction.WitnessTransaction]]
|
||||
*/
|
||||
case class SatoshisPerVirtualByte(currencyUnit: CurrencyUnit) extends FeeUnit
|
||||
case class SatoshisPerVirtualByte(currencyUnit: CurrencyUnit) extends BitcoinFeeUnit
|
||||
|
Loading…
Reference in New Issue
Block a user