Documentation ¶
Index ¶
- Variables
- func ProfileReducedData(data []byte) (red []byte)
- type Addresses
- type BlockNumber
- func (b *BlockNumber) GetGasLimit() (gl uint64, er error)
- func (b *BlockNumber) GetGasPrice() (gp uint64, er error)
- func (b *BlockNumber) NowHex() string
- func (b *BlockNumber) NowUint64() uint64
- func (b *BlockNumber) SetGasLimit(gl uint64)
- func (b *BlockNumber) SetGasPrice(gp uint64)
- func (b *BlockNumber) SetInt(BlockNumberInt uint64)
- func (b *BlockNumber) SetString(BlockNumberHex string) (er error)
- type Profile
- type ProfileMgr
- func (p *ProfileMgr) AddData(blockNumber string, data []byte)
- func (p *ProfileMgr) CheckPendingTxsForOverextension(address string, balance, value uint64) (ok bool)
- func (p *ProfileMgr) DeleteDataUpTo(nAgo uint64)
- func (p *ProfileMgr) Init(lookback uint64)
- func (p *ProfileMgr) SetIsAddressContract(address string, yOrN NYUP)
- func (p *ProfileMgr) Update()
- type TxID2Cost
- type TxMgr
Constants ¶
This section is empty.
Variables ¶
View Source
var G_Params = new(globalParameters)
Functions ¶
func ProfileReducedData ¶
Types ¶
type BlockNumber ¶
type BlockNumber struct { // this struct is used in EHub as global state sync.RWMutex BlockNumber uint64 GasLimit uint64 GasPrice uint64 // contains filtered or unexported fields }
var G_BlockNumber *BlockNumber
func (*BlockNumber) GetGasLimit ¶
func (b *BlockNumber) GetGasLimit() (gl uint64, er error)
func (*BlockNumber) GetGasPrice ¶
func (b *BlockNumber) GetGasPrice() (gp uint64, er error)
func (*BlockNumber) NowHex ¶
func (b *BlockNumber) NowHex() string
func (*BlockNumber) NowUint64 ¶
func (b *BlockNumber) NowUint64() uint64
keeping both uint64 and hex rep handy since both may be used repeatedly
func (*BlockNumber) SetGasLimit ¶
func (b *BlockNumber) SetGasLimit(gl uint64)
func (*BlockNumber) SetGasPrice ¶
func (b *BlockNumber) SetGasPrice(gp uint64)
func (*BlockNumber) SetInt ¶
func (b *BlockNumber) SetInt(BlockNumberInt uint64)
func (*BlockNumber) SetString ¶
func (b *BlockNumber) SetString(BlockNumberHex string) (er error)
type Profile ¶
type Profile struct { IsContract NYUP // No,Yes,Unknown,Probably PendingTxs *blockN2TxInfo }
type ProfileMgr ¶
type ProfileMgr struct { // this struct is used in EHub as global state sync.RWMutex Address2Profile *address2Profile BlockN2Addresses *blockN2Addresses BlocksDLL *DoublyLinkedList // contains filtered or unexported fields }
var G_ProfileMgr *ProfileMgr
func (*ProfileMgr) AddData ¶
func (p *ProfileMgr) AddData(blockNumber string, data []byte)
func (*ProfileMgr) CheckPendingTxsForOverextension ¶
func (p *ProfileMgr) CheckPendingTxsForOverextension(address string, balance, value uint64) (ok bool)
func (*ProfileMgr) DeleteDataUpTo ¶
func (p *ProfileMgr) DeleteDataUpTo(nAgo uint64)
func (*ProfileMgr) Init ¶
func (p *ProfileMgr) Init(lookback uint64)
func (*ProfileMgr) SetIsAddressContract ¶
func (p *ProfileMgr) SetIsAddressContract(address string, yOrN NYUP)
func (*ProfileMgr) Update ¶
func (p *ProfileMgr) Update()
Click to show internal directories.
Click to hide internal directories.