block: replace Base
with Header
This commit is contained in:
parent
4df8a2ad36
commit
f83b376181
25 changed files with 292 additions and 340 deletions
|
@ -92,7 +92,6 @@ func Log(ic *interop.Context) error {
|
|||
// GetTime returns timestamp of the block being verified, or the latest
|
||||
// one in the blockchain if no block is given to Context.
|
||||
func GetTime(ic *interop.Context) error {
|
||||
header := ic.Block.Header()
|
||||
ic.VM.Estack().PushVal(header.Timestamp)
|
||||
ic.VM.Estack().PushVal(ic.Block.Timestamp)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue