I was trying to understand the flow of control between functions (operations performed and their order) when a transaction is received.

  • When any transaction is recieved, or just when you recieve a transaction that pays to you?
    – Nick ODell
    Oct 20 '14 at 22:02
  • In both case, which functions will be called ? and in what order?
    – somesh
    Oct 21 '14 at 19:00

Any transaction

main.cpp, AcceptToMemoryPool:

bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransaction &tx, bool fLimitFree,
                        bool* pfMissingInputs, bool fRejectInsaneFee)

A transaction that pays to or from you

wallet.cpp, CWallet::AddToWallet:

bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet)
  • can you please explain the arguments passed ?
    – somesh
    Oct 21 '14 at 19:31
  • @somesh Could you explain why you want to know? I initially assumed that you wanted to instrument the code somehow.
    – Nick ODell
    Oct 22 '14 at 2:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.