Skip to content

Commit

Permalink
rhp: remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Oct 13, 2023
1 parent dd16343 commit ab22426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions rhp/v2/rhp.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ func (sh *SessionHandler) rpcLoop(sess *session, log *zap.Logger) error {

id, err := sess.t.ReadID()
if err != nil {
return errors.New("WTF")
// return fmt.Errorf("failed to read RPC ID: %w", err)
return fmt.Errorf("failed to read RPC ID: %w", err)
}

rpcFn, ok := map[types.Specifier]func(*session, *zap.Logger) (contracts.Usage, error){
Expand Down
4 changes: 2 additions & 2 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func (sw *SingleAddressWallet) ProcessConsensusChange(cc modules.ConsensusChange

diff := cc.AppliedDiffs[i]
index := types.ChainIndex{
ID: (&block).ID(),
ID: block.ID(),
Height: blockHeight,
}
// determine the source of each delayed output
Expand Down Expand Up @@ -636,7 +636,7 @@ func (sw *SingleAddressWallet) ProcessConsensusChange(cc modules.ConsensusChange
convertToCore(cc.AppliedBlocks[i], (*types.V1Block)(&block))

index := types.ChainIndex{
ID: (&block).ID(),
ID: block.ID(),
Height: blockHeight,
}

Expand Down

0 comments on commit ab22426

Please sign in to comment.