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:
parent
a92872931c
commit
82b230f19f
5 changed files with 15 additions and 8 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue