rpc: increase server buffer size to 128kb

Changes in #636 makes transaction size limit configurable up to a maximum of 128kb.
RPC server creates a buffer to accept payload for a transaction, this
change increases the size of the buffer to 128kb to match the maximum
allowed in chain config
This commit is contained in:
Vinod Damle 2019-03-20 13:46:27 -04:00 committed by Samer Falah
parent 5e9ff6d522
commit 16bfe64d1d
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (s *Server) serveRequest(ctx context.Context, codec ServerCodec, singleShot
defer func() {
if err := recover(); err != nil {
const size = 64 << 10
const size = 128 << 10
buf := make([]byte, size)
buf = buf[:runtime.Stack(buf, false)]
log.Error(string(buf))