Skip to content

Commit

Permalink
Merge branch 'brent/refactor-past-epoch-offsets' (#1943)
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
Fraccaman committed Oct 23, 2023
2 parents 2dd49e0 + 812b2c2 commit f5a42e1
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 244 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 f5a42e1

Please sign in to comment.