Documentation ¶
Index ¶
- Variables
- func BytesToInt(b []byte) uint64
- func GetArbiterSignCount(elaHash string) (int, error)
- func GetMaxArbitersSign(total int) int
- func GetReiceivedBlockHeight(elaHash string) (uint64, error)
- func IntToBytes(n uint64) []byte
- func OnReceivedSmallCroTxFromDirectNet(arbiters [][]byte, total int, signature, rawTx string, blockHeight uint64)
- func OnSmallCrossTx(arbiters []string, total int, signature, rawTx string, blockNumber uint64) error
- func OnSmallTxSuccess(elaHash string)
- func PutSmallTxData(rawTx string, elaHash string) error
- func PutSmallTxSignature(signature string, elaHash string, count int, blockNumber uint64) error
- func SmallCrossTxInit(datadir string, evtMux *event.TypeMux)
- type ETSmallCrossTx
- type SmallCrossTx
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SmallTxDB_SIG_PRE = "small_cross_sig" SmallTxDB_TX_PRE = "small_cross_tx" SmallTxDB_SIGCOUNT_PRE = "small_cross_sigcount" SmallTxDB_BLOCKHEIGHT_PRE = "small_cross_blockNumber" ErrNotFound = "leveldb: not found" ErrAllReadyConfirm = errors.New("smallCroTxConfirmed") )
Functions ¶
func BytesToInt ¶
func GetArbiterSignCount ¶
func GetMaxArbitersSign ¶
func GetReiceivedBlockHeight ¶
func IntToBytes ¶
func OnSmallCrossTx ¶
func OnSmallTxSuccess ¶
func OnSmallTxSuccess(elaHash string)
func PutSmallTxData ¶
func PutSmallTxSignature ¶
func SmallCrossTxInit ¶
Spv database initialization
Types ¶
type ETSmallCrossTx ¶
type SmallCrossTx ¶
func GetSmallCrossTxBytes ¶
func GetSmallCrossTxBytes(elaHash string) ([]byte, *SmallCrossTx, error)
func GetSmallCrossTxMsg ¶
func GetSmallCrossTxMsg(elaHash string) *SmallCrossTx
func NewSmallCrossTx ¶
func NewSmallCrossTx() *SmallCrossTx
func (*SmallCrossTx) Deserialize ¶
func (ct *SmallCrossTx) Deserialize(r io.Reader) error
func (*SmallCrossTx) VerifiedSignature ¶
func (ct *SmallCrossTx) VerifiedSignature(sig string) bool
Click to show internal directories.
Click to hide internal directories.