core: export GetMaxNotValidBeforeDelta blockchain API
Mostly for tests, but it can also be useful as a separate API.
This commit is contained in:
parent
e0ab4ec6f0
commit
28e936eb95
1 changed files with 8 additions and 0 deletions
|
@ -2342,6 +2342,14 @@ func (bc *Blockchain) GetMaxVerificationGAS() int64 {
|
||||||
return bc.contracts.Policy.GetMaxVerificationGas(bc.dao)
|
return bc.contracts.Policy.GetMaxVerificationGas(bc.dao)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetMaxNotValidBeforeDelta returns maximum NotValidBeforeDelta Notary limit.
|
||||||
|
func (bc *Blockchain) GetMaxNotValidBeforeDelta() uint32 {
|
||||||
|
if !bc.config.P2PSigExtensions {
|
||||||
|
panic("disallowed call to Notary")
|
||||||
|
}
|
||||||
|
return bc.contracts.Notary.GetMaxNotValidBeforeDelta(bc.dao)
|
||||||
|
}
|
||||||
|
|
||||||
// GetStoragePrice returns current storage price.
|
// GetStoragePrice returns current storage price.
|
||||||
func (bc *Blockchain) GetStoragePrice() int64 {
|
func (bc *Blockchain) GetStoragePrice() int64 {
|
||||||
if bc.BlockHeight() == 0 {
|
if bc.BlockHeight() == 0 {
|
||||||
|
|
Loading…
Reference in a new issue