mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
remove -1, not sure if i need it yet
This commit is contained in:
@@ -40,7 +40,7 @@ type BlockProcessor interface {
|
||||
func (c *ChainService) ReceiveBlock(ctx context.Context, block *pb.BeaconBlock) (*pb.BeaconState, error) {
|
||||
ctx, span := trace.StartSpan(ctx, "beacon-chain.blockchain.ReceiveBlock")
|
||||
defer span.End()
|
||||
beaconState, err := c.beaconDB.HistoricalStateFromSlot(ctx, block.Slot-1)
|
||||
beaconState, err := c.beaconDB.HistoricalStateFromSlot(ctx, block.Slot)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not retrieve beacon state: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user