Geth 1.13 (Deneb/Cancun) upgrade (#3)

Reviewed-on: #3
Reviewed-by: Thomas E Lackey <telackey@noreply.git.vdb.to>
This commit was merged in pull request #3.
This commit is contained in:
2024-05-23 12:47:27 +00:00
parent e9420ff2b8
commit 3e6321e710
11 changed files with 270 additions and 255 deletions
+7 -7
View File
@@ -317,9 +317,9 @@ func (d *Database) AncientSize(kind string) (uint64, error) {
// AncientRange retrieves all the items in a range, starting from the index 'start'.
// It will return
// - at most 'count' items,
// - at least 1 item (even if exceeding the maxBytes), but will otherwise
// return as many items as fit into maxBytes.
// - at most 'count' items,
// - at least 1 item (even if exceeding the maxBytes), but will otherwise
// return as many items as fit into maxBytes.
func (d *Database) AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error) {
return nil, errNotSupported
}
@@ -331,14 +331,14 @@ func (d *Database) ReadAncients(fn func(ethdb.AncientReaderOp) error) (err error
// TruncateHead satisfies the ethdb.AncientWriter interface.
// TruncateHead discards all but the first n ancient data from the ancient store.
func (d *Database) TruncateHead(n uint64) error {
return errNotSupported
func (d *Database) TruncateHead(n uint64) (uint64, error) {
return 0, errNotSupported
}
// TruncateTail satisfies the ethdb.AncientWriter interface.
// TruncateTail discards the first n ancient data from the ancient store.
func (d *Database) TruncateTail(n uint64) error {
return errNotSupported
func (d *Database) TruncateTail(n uint64) (uint64, error) {
return 0, errNotSupported
}
// Sync satisfies the ethdb.AncientWriter interface
+7 -7
View File
@@ -319,9 +319,9 @@ func (d *Database) AncientSize(kind string) (uint64, error) {
// AncientRange retrieves all the items in a range, starting from the index 'start'.
// It will return
// - at most 'count' items,
// - at least 1 item (even if exceeding the maxBytes), but will otherwise
// return as many items as fit into maxBytes.
// - at most 'count' items,
// - at least 1 item (even if exceeding the maxBytes), but will otherwise
// return as many items as fit into maxBytes.
func (d *Database) AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error) {
return nil, errNotSupported
}
@@ -333,14 +333,14 @@ func (d *Database) ReadAncients(fn func(ethdb.AncientReaderOp) error) (err error
// TruncateHead satisfies the ethdb.AncientWriter interface.
// TruncateHead discards all but the first n ancient data from the ancient store.
func (d *Database) TruncateHead(n uint64) error {
return errNotSupported
func (d *Database) TruncateHead(n uint64) (uint64, error) {
return 0, errNotSupported
}
// TruncateTail satisfies the ethdb.AncientWriter interface.
// TruncateTail discards the first n ancient data from the ancient store.
func (d *Database) TruncateTail(n uint64) error {
return errNotSupported
func (d *Database) TruncateTail(n uint64) (uint64, error) {
return 0, errNotSupported
}
// Sync satisfies the ethdb.AncientWriter interface
+1 -1
View File
@@ -17,7 +17,7 @@
package pgipfsethdb
import (
blockstore "github.com/ipfs/go-ipfs-blockstore"
blockstore "github.com/ipfs/boxo/blockstore"
dshelp "github.com/ipfs/go-ipfs-ds-help"
_ "github.com/lib/pq" //postgres driver
"github.com/multiformats/go-multihash"