mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Add TestValidateAndInsertPruningPointWithSideBlocks * Optimize infrastracture bucket paths * Update infrastracture tests * Refactor the consensus/database layer * Remove utils/dbkeys * Use consensus/database in consensus instead of infrastructure * Fix a bug in dbBucketToDatabaseBucket and MakeBucket combination Co-authored-by: Elichai Turkel <elichai.turkel@gmail.com> Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>
15 lines
349 B
Go
15 lines
349 B
Go
package database
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/infrastructure/db/database"
|
|
)
|
|
|
|
// ErrNotFound denotes that the requested item was not
|
|
// found in the database.
|
|
var ErrNotFound = database.ErrNotFound
|
|
|
|
// IsNotFoundError checks whether an error is an ErrNotFound.
|
|
func IsNotFoundError(err error) bool {
|
|
return database.IsNotFoundError(err)
|
|
}
|