Affected by GO-2022-0970
and 2 other vulnerabilities
GO-2022-0970: elrond-go MultiESDTNFTTransfer call on a SC address with missing function name in github.com/ElrondNetwork/elrond-go
GO-2022-0971: Elrond-go has improper initialization in github.com/ElrondNetwork/elrond-go
GO-2022-1200: Elrond-GO processing: fallback search of SCRs when not found in the main cache in github.com/ElrondNetwork/elrond-go
package
Version:
v1.0.51
Opens a new window with list of versions in this module.
Published: Dec 4, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewBatch(db *DB) *batch
NewBatch creates a batch
DB holds a pointer to the badger database and the path to where it is stored.
NewDB is a constructor for the badger persister
It creates the files in the location given as parameter
Close closes the files/resources associated to the storage medium
Destroy removes the storage medium stored data
Get returns the value associated to the key
Has returns true if the given key is present in the persistence medium
Init initializes the storage medium and prepares it for usage
func (s *DB) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
Put adds the value to the (key, val) storage medium
Remove removes the data associated to the given key
Source Files
¶
Click to show internal directories.
Click to hide internal directories.