-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/pos-syncing-and-steady-state #875
feature/pos-syncing-and-steady-state #875
Conversation
…etworking-and-syncing
…etworking-and-syncing
…file (#763) * Create basic skeleton for PoS message handling and syncing * Simplify interface * Create new struct * Create constrtuctor for ConsensusMessageHandler * rename ConsensusMessageHandler to ConsensusController
* Instantiated FastHotStuffEventLoop within ConsensusController * Address Nina's comments
…etworking-and-syncing
…etworking-and-syncing
…etworking-and-syncing
…etworking-and-syncing
* Handle And Broadcast Local Timeout Signal * Address Nina's feedback * Fix signature verification
* Handle And Broadcast Local Vote Signal * Fix signature verification
…etworking-and-syncing
…etworking-and-syncing
…message_construction_for_broadcast Clean up vote and timeout message construction for broadcast
…etworking-and-syncing
* Add ConsensusController Utility to Fetch Validator Set For Blocks Cleanup Address Nina's comments * Better comments
…ntLoop (#816) Cleanup Address Nina's comments
* Handle Block Construction Signal and Broadcast * Address Nina's comments
* Handle Timeout Block Construction Signal and Broadcast * Address Nina's comments
* Remove Stubbed Out Functions For Node Syncing * Add build flag
* Sign Random Seed Hash in PoS Block Proposal * Address Nina's nits
… TxnConnects condition (#1009) * PoS Change ForkHeight Checks to Use DeSoParams; Simplify BlockView TxnConnects condition * nit
In block_view.go there is a line Always use NewInt when assigning to a new variable. |
Also in block_view.go:3928, I think you could overflow after the multiplication.
I think for multiplication, you check that the resulting value is bigger than each of the two multiplied values. |
Also in block_view.go:_connectFailingTransaction on line 3938, I think you're comparing a raw txn fee to a fee rate:
To fix this, I think you need to multiply by 1k and divide by the size of the txn, and maybe add one in the comparison to cover truncation. Then you need to set effectiveFee = minimum * 1000 / txnSize. Also add some tests to check this. |
* Move BlockUntilReadOnlyViewRegenerated Outside of _addTxn * Update mempool augment block view refresh frequency
* PoS SHA3 Random Seed * Fix Test
* Fix Txn Fee Validation in UtxoView._connectFailingTransaction * Cleanup
No description provided.