Skip to content

Commit 1232cb2

Browse files
ChrisSchinnerln8mgr
authored andcommitted
add validate to handleRPCFundAccounts
1 parent 471b418 commit 1232cb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rhp/v4/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ func (s *Server) handleRPCFundAccounts(stream net.Conn) error {
397397
var req rhp4.RPCFundAccountsRequest
398398
if err := rhp4.ReadRequest(stream, &req); err != nil {
399399
return errorDecodingError("failed to read request: %v", err)
400+
} else if err := req.Validate(); err != nil {
401+
return err
400402
}
401403

402404
state, unlock, err := s.lockContractForRevision(req.ContractID)

0 commit comments

Comments
 (0)