Skip to content

Commit

Permalink
Merge branch 'brent/refactor-past-epoch-offsets' into draft-pos
Browse files Browse the repository at this point in the history
* brent/refactor-past-epoch-offsets:
  [ci] wasm checksums update
  changelog: add #1943
  test/PoS/epoched: init PoS params and fix `PastEpochs` type param
  test/eth: init storage with PoS params where needed
  cleaning: remove unused code + improve docstrings
  refactor `Epoched` for past epochs
  • Loading branch information
brentstone committed Oct 16, 2023
2 parents bd8b57f + 812b2c2 commit b06edff
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 224 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Improve the Epoched data structure's bookkeeping of past
epochs, now parameterizable by PoS and governance params.
([\#1943](https://github.com/anoma/namada/pull/1943))
2 changes: 2 additions & 0 deletions ethereum_bridge/src/protocol/transactions/votes/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ mod tests {
#[test]
fn test_apply_duplicate_votes() -> Result<()> {
let mut wl_storage = TestWlStorage::default();
test_utils::init_default_storage(&mut wl_storage);

let validator = address::testing::established_address_1();
let already_voted_height = BlockHeight(100);
Expand Down Expand Up @@ -411,6 +412,7 @@ mod tests {
#[test]
fn test_calculate_already_seen() -> Result<()> {
let mut wl_storage = TestWlStorage::default();
test_utils::init_default_storage(&mut wl_storage);
let event = default_event();
let keys = vote_tallies::Keys::from(&event);
let tally_pre = TallyParams {
Expand Down
Loading

0 comments on commit b06edff

Please sign in to comment.