truechain / truechain-consensus-core

TrueChain Consensus Protocol: Minerva
Apache License 2.0
161 stars 70 forks source link

Implement transaction pool as a priority queue #47

Closed samikshan closed 6 years ago

samikshan commented 6 years ago

Fixes: #33 -> this change remove the buffered transaction pool implementation because that's not query-able for arrangement.

Also restructures the code, removing pbft-server directory to keep node.go in the same package as pbft-server.go, txlist.go and txpool.go. This is required since the pbft phases would require accessing the transaction pool without encountering a package import cycle issue.