X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=protocol%2Ftxpool.go;h=bbcee181a3b31abbd6a70098faef0ce09784c4db;hb=ebb6ab44b37d29e524f27f503187a901422e1afa;hp=5a06c6702062414a22bc84bd3136fa75dcf775d4;hpb=4635e5a0ad60e7bd8d87243ea5702b4272212980;p=bytom%2Fvapor.git diff --git a/protocol/txpool.go b/protocol/txpool.go index 5a06c670..bbcee181 100644 --- a/protocol/txpool.go +++ b/protocol/txpool.go @@ -26,11 +26,11 @@ const ( var ( maxCachedErrTxs = 1000 maxMsgChSize = 1000 - maxNewTxNum = 10000 - maxOrphanNum = 2000 + maxNewTxNum = 65536 + maxOrphanNum = 32768 - orphanTTL = 10 * time.Minute - orphanExpireScanInterval = 3 * time.Minute + orphanTTL = 60 * time.Second + orphanExpireScanInterval = 30 * time.Second // ErrTransactionNotExist is the pre-defined error message ErrTransactionNotExist = errors.New("transaction are not existed in the mempool")