Skip to content

Commit

Permalink
Difftest core: small PR removes some todos (#656)
Browse files Browse the repository at this point in the history
* Removes model TODO

* Removes 1 TODO

* Removes 1 TODO

* Clarify 1 TODO

Co-authored-by: Daniel <[email protected]>
Co-authored-by: Shawn <[email protected]>
  • Loading branch information
3 people authored Jan 11, 2023
1 parent 35f1e26 commit 463ec20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions tests/difference/core/driver/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ func (s *CoreSuite) matchState() {
for j := 0; j < initState.NumValidators; j++ {
s.Require().Equalf(int64(s.traces.Tokens(j)), s.providerTokens(int64(j)), diagnostic+"P tokens mismatch for val %d", j)
}
// TODO: delegations
s.Require().Equalf(int64(s.traces.DelegatorTokens()), s.delegatorBalance(), diagnostic+"P del balance mismatch")
for j := 0; j < initState.NumValidators; j++ {
a := s.traces.Jailed(j) != nil
Expand All @@ -256,7 +255,6 @@ func (s *CoreSuite) matchState() {
s.Require().Errorf(err, diagnostic+" power mismatch for val %d, expect 0 (nil), got %d", j, actual)
}
}
// TODO: outstanding downtime
}
}

Expand Down Expand Up @@ -313,7 +311,11 @@ func (s *CoreSuite) TestAssumptions() {
s.T().Fatal(FAIL_MSG)
}

// TODO: write assumption that checks that throttle params are appropriate
// TODO: Write a check to make sure that the slash throttle params are set correctly.
// The params should be set such that the slash throttle never kicks in and stop a slash.
// This is because the model assumes that a slash will always be executed, no matter
// how many. This can be achieve by setting the slash factor to e.g. 1.0 and the refresh
// period to 1 block.

// Delegator balance is correct
s.Require().Equal(int64(initState.InitialDelegatorTokens), s.delegatorBalance())
Expand Down
1 change: 0 additions & 1 deletion tests/difference/core/model/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { strict as assert } from 'node:assert';
* This model may need updating pending
* https://github.com/cosmos/ibc/issues/825 (model updated, spec has open PR)
* https://github.com/cosmos/ibc/issues/796 (model updated, spec awaiting PR)
* TODO: implement automatic commit hash comparison warning against spec
*/

import {
Expand Down

0 comments on commit 463ec20

Please sign in to comment.