Skip to content

Proposal: Add RPCMaxLen to fix encoding errors during contract negotiation

Christopher Schinnerl requested to merge rpcmaxlen into master

Fornax has been seeing lots of encoding errors related to the maximum size when decoding RPC messages. https://pixeldrain.com/u/JIFjNy_c

It looks like we expect all RPCs to be at most RPCMinLen (4096) bytes long which seems odd to me since RPCMinLen indicates that RPCs are allowed to be longer than that. This MR adds a RPCMaxLen which is two times the RPCMinLen and passes that into the decoding functions as the maxLen argument.

Edited by Christopher Schinnerl

Merge request reports