ZcashFoundation / zebra

Zcash - Financial Privacy in Rust 🦓
https://zfnd.org/zebra/
Apache License 2.0
413 stars 106 forks source link

Implement `generate` RPC method #8834

Closed oxarbitrage closed 2 months ago

oxarbitrage commented 2 months ago

We want to make the zcashd rpc tests to work with zebra:

https://github.com/ZcashFoundation/zebra/issues/8779 https://github.com/ZcashFoundation/zebra/issues/8781

However, almost all the tests rely in a generate RPC method, for example: https://github.com/zcash/zcash/blob/master/qa/rpc-tests/getmininginfo.py#L34

The generate method is a Regtest mode only that mine a number of blocks immediately.

Docs: https://zcash.github.io/rpc/generate.html Zcashd implementation: https://github.com/zcash/zcash/blob/master/src/rpc/mining.cpp#L169