mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
fixed small inconsistency with sqlite3 (#8054)
This commit is contained in:
parent
83d767c861
commit
db4533acd0
@ -87,7 +87,7 @@ func ReadParentBlockRoot(ctx context.Context, db SQLObject, blockRoot libcommon.
|
||||
var parentRoot libcommon.Hash
|
||||
|
||||
// Execute the query.
|
||||
err := db.QueryRowContext(ctx, "SELECT parent_block_root FROM beacon_indicies WHERE beacon_block_root = ?", blockRoot[:]).Scan(parentRoot[:])
|
||||
err := db.QueryRowContext(ctx, "SELECT parent_block_root FROM beacon_indicies WHERE beacon_block_root = ?", blockRoot[:]).Scan(&parentRoot)
|
||||
if err != nil {
|
||||
if err == sql.ErrNoRows {
|
||||
return libcommon.Hash{}, nil
|
||||
|
Loading…
Reference in New Issue
Block a user