mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
core: clone MPT node while restoring it multiple times
We need this to avoid collapse collisions. Example of such collapse described in https://github.com/nspcc-dev/neo-go/pull/2019#discussion_r689629704.
This commit is contained in:
parent
5cd78c31af
commit
36808b8904
8 changed files with 138 additions and 1 deletions
|
@ -54,3 +54,6 @@ func (e EmptyNode) Type() NodeType {
|
|||
func (e EmptyNode) Bytes() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Clone implements Node interface.
|
||||
func (EmptyNode) Clone() Node { return EmptyNode{} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue