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

@ -79,7 +79,7 @@ func newBlock(cfg config.ProtocolConfiguration, index uint32, prev util.Uint256,
if err != nil {
panic(err)
}
b := b.GetHashableData()
b := b.GetSignedPart()
sig := pKey.Sign(b)
if len(sig) != 64 {
panic("wrong signature length")