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

Implement getrawnotaryrequest and getrawnotarytransaction RPC extensions #3098

Merged
merged 4 commits into from
Aug 31, 2023

Commits on Aug 31, 2023

  1. core: add function IterateVerifiedTransactions

    IterateVerifiedTransactions iterates through verified transactions in
    memory pool and invokes function cont. Where cont callback returns
    whether we should continue with the traversal process.
    
    Signed-off-by: Tatiana Nesterenko <[email protected]>
    tatiana-nspcc committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    d285342 View commit details
    Browse the repository at this point in the history
  2. rpcsrv: add getrawnotarypool, getrawnotarytransaction handlers

    `getrawnotarytransaction` takes a transaction hash and attempts to find
    the corresponding transaction in the notary requests mempool. It searches
    through all the verified main and fallback transactions.
    `getrawnotarypool` returns hashes of all the verified transactions,
    including both main and fallback transactions.
    
    Additionally add struct result.RawNotaryPool.
    
    Close #2951
    
    Signed-off-by: Tatiana Nesterenko <[email protected]>
    tatiana-nspcc committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    9e31e42 View commit details
    Browse the repository at this point in the history
  3. rpcclient: support getrawnotarytransaction and getrawnotarypool RPC m…

    …ethods
    
    GetRawNotaryTransaction returns a fallback or main transaction that was
    previously added to the memory pool by P2PNotaryRequest. This function
    invokes the RPC server's `getrawnotarytransaction` method.
    GetRawNotaryPool returns hashes from all the verified transactions,
    including both main and fallback transactions. This function invokes
    the RPC server's `getrawnotarypool` method.
    
    Also, these functions were added to doc.go.
    
    Signed-off-by: Tatiana Nesterenko <[email protected]>
    tatiana-nspcc committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    d06f135 View commit details
    Browse the repository at this point in the history
  4. docs: add getrawnotarypool, getrawnotarytransaction

    Signed-off-by: Tatiana Nesterenko <[email protected]>
    tatiana-nspcc committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    7afa950 View commit details
    Browse the repository at this point in the history