X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=netsync%2Fblock_keeper.go;h=dbb938ab7465144c7550ee2b4ae177d888b80f5e;hb=3bd499e5ccf3e7b0298bac84bb51d6901fe05424;hp=5badaf2d0f27494dc609cd722e0919a1f019a80b;hpb=16893245b4a12c75492dcbc917a5b9fe0db35d54;p=bytom%2Fbytom.git diff --git a/netsync/block_keeper.go b/netsync/block_keeper.go index 5badaf2d..dbb938ab 100644 --- a/netsync/block_keeper.go +++ b/netsync/block_keeper.go @@ -21,6 +21,9 @@ const ( maxBlocksPending = 1024 maxtxsPending = 32768 maxQuitReq = 256 + + // txChanSize is the size of channel listening to Txpool newTxCh. + maxTxChanSize = 1000 ) var (