Skip to content

Commit

Permalink
devel up
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jan 28, 2021
1 parent 049f19c commit 5a9c86e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/integration/commands/refetence_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,14 @@ func toMdbx(ctx context.Context, from, to string) error {
c := dstTx.Cursor(name)
srcC := srcTx.Cursor(name)
var prevK []byte
casted, isDupsort := c.(ethdb.CursorDupSort)

for k, v, err := srcC.First(); k != nil; k, v, err = srcC.Next() {
if err != nil {
return err
}

if casted, ok := c.(ethdb.CursorDupSort); ok {
if isDupsort {
if bytes.Equal(k, prevK) {
if err = casted.AppendDup(k, v); err != nil {
return err
Expand Down

0 comments on commit 5a9c86e

Please sign in to comment.