Skip to content

Commit

Permalink
fix custodian check for mint transaction validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tristenblakely committed Aug 4, 2023
1 parent 7378a37 commit 79620c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/mint.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (node *Node) validateMintSnapshot(snap *common.Snapshot, tx *common.Version
}

var signed *common.VersionedTransaction
cur, err := node.persistStore.ReadCustodian(snap.Timestamp)
cur, err := node.persistStore.ReadCustodian(timestamp)
if err != nil {
panic(err)
}
Expand Down
3 changes: 3 additions & 0 deletions rpc/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ func testConsensus(t *testing.T, snapVersionMint int) {
mints := testListMintDistributions(nodes[0].Host)
require.Len(mints, 0)

logger.SetLevel(logger.ERROR)
logger.SetFilter("(?i)mint")

kernel.TestMockDiff((config.KernelMintTimeBegin + 24) * time.Hour)
tl, _ = testVerifySnapshots(require, nodes)
require.Equal(transactionsCount, len(tl))
Expand Down

0 comments on commit 79620c1

Please sign in to comment.