mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 05:48:31 +00:00
Revert "only increment deposit index on state for old deposit flow"
This reverts commit 817d4235ae.
This commit is contained in:
@@ -549,7 +549,6 @@ impl<E: EthSpec> Eth1ChainBackend<E> for CachingEth1Backend<E> {
|
||||
// [New in Electra:EIP6110]
|
||||
let deposit_index_limit =
|
||||
if let Ok(deposit_receipts_start_index) = state.deposit_receipts_start_index() {
|
||||
dbg!("deposit_receipts_start_index", deposit_receipts_start_index);
|
||||
std::cmp::min(deposit_count, deposit_receipts_start_index)
|
||||
} else {
|
||||
deposit_count
|
||||
@@ -562,14 +561,6 @@ impl<E: EthSpec> Eth1ChainBackend<E> for CachingEth1Backend<E> {
|
||||
let next = deposit_index;
|
||||
let last = std::cmp::min(deposit_index_limit, next + E::MaxDeposits::to_u64());
|
||||
|
||||
dbg!(
|
||||
next,
|
||||
last,
|
||||
deposit_count,
|
||||
deposit_index_limit,
|
||||
E::MaxDeposits::to_u64()
|
||||
);
|
||||
|
||||
self.core
|
||||
.deposits()
|
||||
.read()
|
||||
|
||||
Reference in New Issue
Block a user