core: rename *block.Base.GetHashableData to GetSignedPart()

This allow to use `Block` as a Verifiable item.
When tx is provided, it is set as an interop's script container.
Otherwise, block is set.
This commit is contained in:
Evgenii Stratonikov 2020-04-13 16:31:04 +03:00
parent a92872931c
commit 82b230f19f
5 changed files with 15 additions and 8 deletions

View file

@ -246,7 +246,7 @@ func txGetHash(ic *interop.Context, v *vm.VM) error {
// engineGetScriptContainer returns transaction that contains the script being
// run.
func engineGetScriptContainer(ic *interop.Context, v *vm.VM) error {
v.Estack().PushVal(vm.NewInteropItem(ic.Tx))
v.Estack().PushVal(vm.NewInteropItem(ic.Container))
return nil
}