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.64
Opens a new window with list of versions in this module.
Published: Dec 18, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewlruDB creates a lruDB according to size
DB represents the memory database storage. It holds a map of key value pairs
and a mutex to handle concurrent accesses to the map
New creates a new memorydb object
Close closes the files/resources associated to the storage medium
Destroy removes the storage medium stored data
Get gets the value associated to the key, or reports an error
Has returns true if the given key is present in the persistence medium, false otherwise
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.