Skip to content

Commit

Permalink
fix: sessiontree bug
Browse files Browse the repository at this point in the history
(cherry picked from commit 7d48aef23354497be55958ad2f484e1734550249)
  • Loading branch information
bryanchriswhite committed Dec 11, 2024
1 parent 5d8c6dc commit 830a7f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/relayer/session/sessiontree.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package session

import (
"bytes"
"context"
"crypto/sha256"
"fmt"
"os"
Expand Down Expand Up @@ -95,7 +96,13 @@ func NewSessionTree(
// contain a non-hashed Relay that could be used to validate the proof on-chain.
trie := smt.NewSparseMerkleSumTrie(treeStore, protocol.NewTrieHasher(), smt.WithValueHasher(nil))

logger := polylog.Ctx(context.TODO()).With(
"session_id", sessionHeader.SessionId,
"supplier_operator_address", supplierOperatorAddress,
)

sessionTree := &sessionTree{
logger: logger,
sessionHeader: sessionHeader,
storePath: storePath,
treeStore: treeStore,
Expand Down Expand Up @@ -268,7 +275,6 @@ func (st *sessionTree) Delete() error {
} else {
st.logger.With(
"claim_root", fmt.Sprintf("%x", st.GetClaimRoot()),
"session_id", st.GetSessionHeader().SessionId,
).Info().Msg("KVStore is already stopped")
}

Expand Down

0 comments on commit 830a7f6

Please sign in to comment.