Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Identifier = "73424348"
View Source
var ShaGateAddress = "14f8c7e99fd4e867c34cbd5968e35575fd5919a4"
View Source
var Version = "00"
Functions ¶
func ReorgBlock ¶
func ReorgBlock()
Types ¶
type BlockCountResp ¶
type BlockCountResp struct { Result int64 `json:"result"` Error *JsonRpcError `json:"error"` Id string `json:"id"` }
type BlockHashResp ¶
type BlockHashResp struct { Result string `json:"result"` Error *JsonRpcError `json:"error"` Id string `json:"id"` }
type BlockInfo ¶
type BlockInfo struct { Hash string `json:"hash"` Confirmations int `json:"confirmations"` Size int `json:"size"` Height int64 `json:"height"` Version int `json:"version"` VersionHex string `json:"versionHex"` Merkleroot string `json:"merkleroot"` Tx []string `json:"tx"` Time int64 `json:"time"` MedianTime int64 `json:"mediantime"` Nonce int `json:"nonce"` Bits string `json:"bits"` Difficulty float64 `json:"difficulty"` Chainwork string `json:"chainwork"` NumTx int `json:"nTx"` PreviousBlockhash string `json:"previousblockhash"` }
type BlockInfoResp ¶
type BlockInfoResp struct { Result BlockInfo `json:"result"` Error *JsonRpcError `json:"error"` Id string `json:"id"` }
type CoinbaseVin ¶
type Context ¶
type Context struct { RWLock sync.RWMutex Log *log.Logger BlockLog *log.Logger Producer *Producer TxByHash map[string]*TxInfo BlkByHash map[string]*BlockInfo BlkHashByHeight map[int64]string PubkeyInfoByPubkey map[string]*PubKeyInfo NextBlockHeight int64 //internal PubKeyInfoSet []PubKeyInfo PubkeyInfoIndex int }
var Ctx Context
type JsonRpcError ¶
type Producer ¶
type PubKeyInfo ¶
type TxInfo ¶
type TxInfo struct { TxID string `json:"txid"` Hash string `json:"hash"` Version int `json:"version"` Size int `json:"size"` Locktime int `json:"locktime"` VinList []map[string]interface{} `json:"vin"` VoutList []Vout `json:"vout"` Hex string `json:"hex"` Blockhash string `json:"blockhash"` Confirmations int `json:"confirmations"` Time int64 `json:"time"` BlockTime int64 `json:"blocktime"` }
func BuildCCTxWithPubkey ¶
func BuildTxWithPubkey ¶
Click to show internal directories.
Click to hide internal directories.