Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindBlockNonce ¶ added in v0.0.2
FindBlockNonce attempts to find a nonce for b that meets the PoW target.
Types ¶
type BoltChainDB ¶
type BoltChainDB struct {
// contains filtered or unexported fields
}
BoltChainDB implements chain.DB with a BoltDB database.
func NewBoltChainDB ¶
func NewBoltChainDB(db *bbolt.DB) *BoltChainDB
NewBoltChainDB creates a new BoltChainDB.
func OpenBoltChainDB ¶
func OpenBoltChainDB(path string) (*BoltChainDB, error)
OpenBoltChainDB opens a BoltDB database.
func (*BoltChainDB) Bucket ¶
func (db *BoltChainDB) Bucket(name []byte) chain.DBBucket
Bucket implements chain.DB.
func (*BoltChainDB) CreateBucket ¶
func (db *BoltChainDB) CreateBucket(name []byte) (chain.DBBucket, error)
CreateBucket implements chain.DB.
Click to show internal directories.
Click to hide internal directories.