Skip to content

Commit

Permalink
Merge pull request algorand#6208 from Algo-devops-service/relbeta4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
algojohnlee authored Dec 20, 2024
2 parents 76b0bbc + 7eec510 commit 798e9e9
Show file tree
Hide file tree
Showing 8 changed files with 353 additions and 9 deletions.
2 changes: 1 addition & 1 deletion merklearray/merkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"errors"
"fmt"
"hash"
"slices"
"sort"

"github.com/algorand/go-algorand/crypto"
"golang.org/x/exp/slices"
)

const (
Expand Down
8 changes: 3 additions & 5 deletions merkletrie/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ import (
"encoding/binary"
"errors"
"fmt"

"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
"maps"
"slices"
)

// storedNodeIdentifier is the "equivalent" of a node-ptr, but oriented around persisting the
Expand Down Expand Up @@ -448,8 +447,7 @@ func (mtc *merkleTrieCache) reallocatePendingPages(stats *CommitStats) (pagesToC
}

// create a sorted list of created pages
sortedCreatedPages := maps.Keys(createdPages)
slices.Sort(sortedCreatedPages)
sortedCreatedPages := slices.Sorted(maps.Keys(createdPages))

mtc.reallocatedPages = make(map[uint64]map[storedNodeIdentifier]*node)

Expand Down
2 changes: 1 addition & 1 deletion merkletrie/committer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package merkletrie

import "golang.org/x/exp/slices"
import "slices"

// Committer is the interface supporting serializing tries into persistent storage.
type Committer interface {
Expand Down
2 changes: 1 addition & 1 deletion merkletrie/committer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ package merkletrie

import (
"encoding/binary"
"slices"
"testing"

"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"

"github.com/algorand/go-algorand/crypto"
"github.com/algorand/go-algorand/test/partitiontest"
Expand Down
2 changes: 1 addition & 1 deletion merkletrie/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ package merkletrie
import (
"bytes"
"encoding/binary"
"slices"
"sort"
"unsafe"

"github.com/algorand/go-algorand/crypto"
"golang.org/x/exp/slices"
)

type childEntry struct {
Expand Down
236 changes: 236 additions & 0 deletions msgp_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions msgp_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 798e9e9

Please sign in to comment.