Skip to content

Commit

Permalink
chore: updating store mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ragnarok87 committed Jun 15, 2023
1 parent 814c6ae commit 956d5f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions store/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ func (m *MockStore) LastCertificate() (uint32, *block.Certificate) {
return m.LastHeight, m.LastCert
}
func (m *MockStore) RecentBlockByStamp(stamp hash.Stamp) (uint32, *block.Block) {
if stamp.EqualsTo(hash.UndefHash.Stamp()) {
return 0, nil
}
// if stamp.EqualsTo(hash.UndefHash.Stamp()) {
// return 0, nil
// }
for h, b := range m.Blocks {
if b.Stamp().EqualsTo(stamp) {
return h, &b
Expand Down

0 comments on commit 956d5f0

Please sign in to comment.