Skip to content

Commit e8e6a28

Browse files
author
Alex Woods
committed
Correct active_epoch of pool reg/update
1 parent eae8e68 commit e8e6a28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/chain_store/src/chain_store.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,8 @@ impl ChainStore {
10961096
network_id.clone(),
10971097
false,
10981098
)?,
1099-
active_epoch: tx.block.extra.epoch + 1,
1099+
// Pool registration/updates become active after 2 epochs
1100+
active_epoch: tx.block.extra.epoch + 2,
11001101
});
11011102
}
11021103
}
@@ -1128,7 +1129,8 @@ impl ChainStore {
11281129
network_id.clone(),
11291130
false,
11301131
)?,
1131-
active_epoch: tx.block.extra.epoch + 1,
1132+
// Pool registration/updates become active after 2 epochs
1133+
active_epoch: tx.block.extra.epoch + 2,
11321134
});
11331135
}
11341136
}

0 commit comments

Comments
 (0)