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

btcjson+rpcserver: add a testmempoolaccept #1836

Open
Roasbeef opened this issue Mar 30, 2022 · 0 comments
Open

btcjson+rpcserver: add a testmempoolaccept #1836

Roasbeef opened this issue Mar 30, 2022 · 0 comments

Comments

@Roasbeef
Copy link
Member

Newer versions of bitcoind have added a new RPC call to allow developers to test mempool acceptance before broadcasting or committing to a given Bitcoin transaction: https://developer.bitcoin.org/reference/rpc/testmempoolaccept.html.

We should also add something similar, as such an endpoint is a good way of exposing all the various policy related checks (though we're no longer 100% in sync with bitcoind's policies). Along the way, we may also want to expose more of the contextless policy checks as public methods on the mempool package, as Go projects can opt to call those methods diectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant