lntest: increase rpcmaxwebsockets for btcd

This has been seen in the itest which can lead to the node startup
failure,
```
2024-11-20 18:55:15.727 [INF] RPCS: Max websocket clients exceeded [25] - disconnecting client 127.0.0.1:57224
```
This commit is contained in:
yyforyongyu 2024-11-20 21:11:06 +08:00
parent 4e85d86a2e
commit f912f407c8
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -94,6 +94,14 @@ func NewBackend(miner string, netParams *chaincfg.Params) (
"--nobanning",
// Don't disconnect if a reply takes too long.
"--nostalldetect",
// The default max num of websockets is 25, but the closed
// connections are not cleaned up immediately so we double the
// size.
//
// TODO(yy): fix this in `btcd` to clean up the stale
// connections.
"--rpcmaxwebsockets=50",
}
chainBackend, err := rpctest.New(
netParams, nil, args, node.GetBtcdBinary(),