Module: Bitcoin::Namecoin
- Defined in:
- lib/bitcoin/namecoin.rb
Overview
This module includes (almost) everything necessary to add namecoin support to bitcoin-ruby. When switching to a :namecoin network, it will load its functionality into the Script class and the Storage backend. The only things not included here should be parsing the AuxPow, which is done in Protocol::Block directly, and passing the txout to #store_name from the storage backend.
Defined Under Namespace
Constant Summary collapse
- FIRSTUPDATE_LIMIT =
name_new must have 12 confirmations before corresponding name_firstupdate is valid.
12- EXPIRATION_DEPTH =
number of blocks after which a name expires.
36000
Class Method Summary collapse
Class Method Details
.load ⇒ Object
11 12 13 14 15 |
# File 'lib/bitcoin/namecoin.rb', line 11 def self.load Bitcoin::Script.class_eval { include Script } Bitcoin::Storage::Backends::StoreBase.class_eval { include Storage::Backend } Bitcoin::Storage::Models.class_eval { include Storage::Models } end |