block: rename BlockBase to Base

This commit is contained in:
Evgenii Stratonikov 2020-01-15 11:29:50 +03:00
parent 63c56cca5c
commit 489b88afbb
14 changed files with 41 additions and 41 deletions

View file

@ -20,7 +20,7 @@ var _ block.Block = (*neoBlock)(nil)
// Sign implements block.Block interface.
func (n *neoBlock) Sign(key crypto.PrivateKey) error {
data := n.BlockBase.GetHashableData()
data := n.Base.GetHashableData()
sig, err := key.Sign(data[:])
if err != nil {
return err
@ -33,7 +33,7 @@ func (n *neoBlock) Sign(key crypto.PrivateKey) error {
// Verify implements block.Block interface.
func (n *neoBlock) Verify(key crypto.PublicKey, sign []byte) error {
data := n.BlockBase.GetHashableData()
data := n.Base.GetHashableData()
return key.Verify(data, sign)
}