les: fixed tests

This commit is contained in:
Zsolt Felfoldi 2020-02-28 21:32:46 +01:00
parent 9be4810e77
commit 622becc45e
2 changed files with 1 additions and 4 deletions

View file

@ -634,6 +634,7 @@ func (p *serverPeer) Handshake(td *big.Int, head common.Hash, headNum uint64, ge
p.fcParams = sParams
p.fcServer = flowcontrol.NewServerNode(sParams, &mclock.System{})
p.fcCosts = MRC.decode(ProtocolLengths[uint(p.version)])
p.active = p.paramsUseful()
recv.get("checkpoint/value", &p.checkpoint)
recv.get("checkpoint/registerHeight", &p.checkpointNumber)

View file

@ -412,10 +412,6 @@ func (p *testPeer) handshake(t *testing.T, td *big.Int, head common.Hash, headNu
if err := p2p.Send(p.app, StatusMsg, sendList); err != nil {
t.Fatalf("status send: %v", err)
}
p.cpeer.fcParams = flowcontrol.ServerParams{
BufLimit: testBufLimit,
MinRecharge: testBufRecharge,
}
}
func (p *testPeer) expectCapUpdate(t *testing.T) {