Documentation ¶
Index ¶
- Constants
- Variables
- func GetAccountByPassword(sdk *sdk.MultiChainSdk, path, pwd string) (*sdk.Account, error)
- type Checkpoint
- type LessConfirmationError
- type Observer
- type OverSizeErr
- type Signer
- type ToSignItem
- type ToVoteItem
- type Voter
- type WaitingDB
- func (w *WaitingDB) CheckIfVoted(txid []byte) bool
- func (w *WaitingDB) CheckIfWaiting(txid []byte) bool
- func (w *WaitingDB) Close()
- func (w *WaitingDB) DelIfExist(txid []byte) bool
- func (w *WaitingDB) Get(txid []byte) (p *btc.BtcProof, err error)
- func (w *WaitingDB) GetHeight() uint32
- func (w *WaitingDB) GetUnderHeightAndDelete(height uint32) ([]*btc.BtcProof, [][]byte, error)
- func (w *WaitingDB) MarkVotedTx(txid []byte) error
- func (w *WaitingDB) Put(txid []byte, item *btc.BtcProof) error
- func (w *WaitingDB) SetHeight(height uint32) error
Constants ¶
View Source
const ( OP_RETURN_SCRIPT_FLAG = byte(0x66) BTC_CHAINID = 0 MIN_FEE = 100 )
Variables ¶
View Source
var ( BKTWaiting = []byte("Waiting") BKTVoted = []byte("voted") BKTHeight = []byte("last") KEYHeight = []byte("last") )
Functions ¶
func GetAccountByPassword ¶
Types ¶
type Checkpoint ¶
type Checkpoint struct {
Height uint32
}
type LessConfirmationError ¶
type LessConfirmationError struct {
Err error
}
func (LessConfirmationError) Error ¶
func (err LessConfirmationError) Error() string
func (*LessConfirmationError) String ¶
func (err *LessConfirmationError) String() string
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
func NewObserver ¶
func NewObserver(allia *sdk.MultiChainSdk, voting chan *btc.BtcProof, txchan chan *ToSignItem, loopWaitTime int64, watchingKey, watchingMakeTxKey, netType string, db *WaitingDB, circle uint32) *Observer
type OverSizeErr ¶
type OverSizeErr struct {
Err error
}
func (OverSizeErr) Error ¶
func (err OverSizeErr) Error() string
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
type ToSignItem ¶
type ToVoteItem ¶
type Voter ¶
type Voter struct { WaitingDB *WaitingDB // contains filtered or unexported fields }
func (*Voter) WaitingRetry ¶
func (v *Voter) WaitingRetry()
type WaitingDB ¶
type WaitingDB struct {
// contains filtered or unexported fields
}
func (*WaitingDB) CheckIfVoted ¶
func (*WaitingDB) CheckIfWaiting ¶
func (*WaitingDB) DelIfExist ¶
func (*WaitingDB) GetUnderHeightAndDelete ¶
func (*WaitingDB) MarkVotedTx ¶
Click to show internal directories.
Click to hide internal directories.