Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0xd4b4bef9 TestnetMagic wire.BitcoinNet = 0x0709110b RegtestMagic wire.BitcoinNet = 0xdab5bffa SignetMagic wire.BitcoinNet = 0x7696b422 )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params RegTestParams chaincfg.Params SigNetParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Groestlcoin network, the regression test Groestlcoin network, the test Groestlcoin network and the simulation test Groestlcoin network, in this order
func NewGroestlcoinRPC ¶
func NewGroestlcoinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewGroestlcoinRPC returns new GroestlcoinRPC instance
Types ¶
type GroestlcoinParser ¶
type GroestlcoinParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
GroestlcoinParser handle
func NewGroestlcoinParser ¶
func NewGroestlcoinParser(params *chaincfg.Params, c *btc.Configuration) *GroestlcoinParser
NewGroestlcoinParser returns new GroestlcoinParser instance
type GroestlcoinRPC ¶
type GroestlcoinRPC struct {
*btc.BitcoinRPC
}
GroestlcoinRPC is an interface to JSON-RPC service
func (*GroestlcoinRPC) GetTransactionForMempool ¶
func (g *GroestlcoinRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error)
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*GroestlcoinRPC) Initialize ¶
func (g *GroestlcoinRPC) Initialize() error
Initialize initializes GroestlcoinRPC instance.
Click to show internal directories.
Click to hide internal directories.