threefoldtecharchive / rivine

Blockchain technology for creating custom chains.
Apache License 2.0
22 stars 12 forks source link

Transactionpool propagation slow #519

Closed LeeSmet closed 5 years ago

LeeSmet commented 5 years ago

When pushing a large amount of transactions to the pool, it takes a long time to propagate them to other nodes (about 1K small (less than 100 bytes ) transactions per hour).

LeeSmet commented 5 years ago

Problem originates here: https://github.com/threefoldtech/rivine/blob/master/modules/gateway/consts.go#L78

When pushing large amounts of transactions, this is really annoying, since it really degrades throughput, so the question is, should we just leave this or refactor the gateway to use some kind of goroutine pool (possibly per peer) to avoid the describe DoS vector, but not suffer the performance degrading