Class: LedgerLite::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ledger-lite/base.rb

Constant Summary collapse

COINBASE =

note: for now is an array (allow/ support multiple coinbases)

note: add a (†) coinbase  marker
['Coinbase†']

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



34
35
36
# File 'lib/ledger-lite/base.rb', line 34

def initialize
  @coinbase = COINBASE
end

Instance Attribute Details

#coinbaseObject

use a different name e.g.

-  mint  (like royal mint or federal coin mint?) or
-  base
-  magic  (for creating coins out-of-nothing?) or
-  network or ??) - why? why not?


28
29
30
# File 'lib/ledger-lite/base.rb', line 28

def coinbase
  @coinbase
end

Instance Method Details

#coinbase?(addr) ⇒ Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/ledger-lite/base.rb', line 38

def coinbase?( addr )
  @coinbase.include?( addr )
end