remove -1, not sure if i need it yet

This commit is contained in:
Preston Van Loon
2019-04-02 22:30:24 -04:00
parent 4725d841ee
commit 2cfcbb8108

View File

@@ -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)
}