Conversation
also possible optimize of loop iterating txes, in case of height == 0, don't need to call komodo_block2height for each tx, call it once before iterating loop is enough. # Conflicts: # src/main.cpp
instead of block.nTime (pblock->nTime). This should prevent existance of txes, which are already added in mempool, but never will be added to a block (skipped on create blocktemplate stage), bcz of MTP too far away from block creation time in case of big gaps between blocks. # Conflicts: # src/miner.cpp
… error Before debug.log in case of komodo_validate_interest failed was like: 2022-04-29 03:14:33 AcceptToMemoryPool komodo_validate_interest failure 2022-04-29 03:14:33 ERROR: AcceptToMemoryPool: komodo_validate_interest failed We removed 1st message and added txid to 2nd. # Conflicts: # src/main.cpp
We don't need to call pindexPrev->GetMedianTimePast() on every mempool tx iteration, it's calculated before in nMedianTimePast. Also we don't need params variable, as we already have consensusParams defined above. # Conflicts: # src/miner.cpp
- re-format, remove useless comments and dead code. - remove unused variables. - remove set<CBitcoinAddress> setAddress and conditions containing it, bcz setAddress.size() is always 0, so these paths in the code are dead. - get rid of most pointer operations, instead of memcmp passed notarypub33, we construct targetP2PKScript and compare it with scripts from available utxos. - don't allow to spend unconfirmed 10k sat. utxos, bcz we don't ensure that they would be included in the same block. # Conflicts: # src/wallet/rpcwallet.cpp
to pass two params in a function earlier we used a (void **) to handle pointers on these 2 params in "array". also there was "hidden" parameter, this pointer itself, if pointer == 0 -> it before HF time, if pointer !=0 -> after HF time, and we should extract two params from array of passed pointers. of course it can be replaced with tuple, or boost::optional with tuple "inside", but much more simple way is to pass params (CScript and nLockTime) in komodo_notaryvin same way as they exits and assume that if passed CScript().size() == 0, it before HF and if size() > 0 - it after HF. # Conflicts: # src/miner.cpp
"Backport" of bitcoin/bitcoin#10534 to our codebase. TODO: consider to use latest prevector implementation from Bitcoin upstream.
This reverts commit 2a54247.
HF22 (HFNET) Consensus Changes
s6 mainnet pubkeys and timestamps
bump version (0.7.2), KOMODO_VERSION (0.7.2) and copyright year
who-biz
pushed a commit
to who-biz/komodo
that referenced
this pull request
Jul 29, 2024
Release v1.1.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.