Skip to content
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

012 [src/validation.h] @ bool DumpMempool(const CTxMemPool& pool, #474

Open
ihavenoface opened this issue Feb 18, 2023 · 0 comments
Open
Labels

Comments

@ihavenoface
Copy link
Owner

Context: https://github.com/peercoin/peercoin/blob/6839e7cc431fd284b80fdf6a2d338aa03ca3ab6a/src/validation.h#L1011-L1022
Origin: https://github.com/ihavenoface/diff-btc-ppc/blob/main/src/validation.h.diff

@@ -1013,6 +1011,12 @@ bool DumpMempool(const CTxMemPool& pool, FopenFn mockable_fopen_function = fsbri
 /** Load the mempool from disk. */
 bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate, FopenFn mockable_fopen_function = fsbridge::fopen);
 
+// peercoin:
+CAmount GetProofOfWorkReward(unsigned int nBits, uint32_t nTime);
+CAmount GetProofOfStakeReward(int64_t nCoinAge, uint32_t nTime, uint64_t nMoneySupply);
+bool GetCoinAge(const CTransaction& tx, const CCoinsViewCache &view, uint64_t& nCoinAge, unsigned int nTimeTx, bool isTrueCoinAge = true); // peercoin: get transaction coin age
+bool SignBlock(CBlock& block, const CWallet& keystore);
+bool CheckBlockSignature(const CBlock& block);
 /**
  * Return the expected assumeutxo value for a given height, if one exists.
  *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant