[bitcoin] Auto generate new block when broadcast Bitcoin tx in local network #2651
Labels
area::bitcoin
area:rpc
RPC relative issues
help wanted
Extra attention is needed
proposal
New external API or other notable changes
skill::rust
Need the rust language skill to complete the issue
Milestone
Proposal Details
On the Bitcoin regtest network, developers need to manually trigger a new block via the
bitcoin-cli generatetoaddress
command.Some examples are in the document Bitcoin local development environment and test cases in bitseed and bitcoin.
We can auto-generate a new block when broadcasting Bitcoin tx via RPC
rooch/crates/rooch-rpc-api/src/api/btc_api.rs
Lines 39 to 46 in 2d65e2e
Note: this only available for Roch local network and Bitcoin regtest network.
The text was updated successfully, but these errors were encountered: