rpcclient: Put CFHeader in PrevFilterHeader field in RPC response.

This commit is contained in:
Jim Posen 2018-01-31 21:47:03 -08:00 committed by Olaoluwa Osuntokun
parent 4d0e856ea1
commit 7b67f61fa6

View file

@ -900,11 +900,7 @@ func (r FutureGetCFilterHeaderResult) Receive() (*wire.MsgCFHeaders, error) {
}
// Assign the hash to a headers message and return it.
var msgCFHeaders wire.MsgCFHeaders
err = msgCFHeaders.AddCFHeader(headerHash)
if err != nil {
return nil, err
}
msgCFHeaders := wire.MsgCFHeaders{PrevFilterHeader: *headerHash}
return &msgCFHeaders, nil
}