cuprate-hinto-janai/test-utils
Boog900 4169c45c58
Blockchain: add alt-block handling (#260)
* add new tables & types

* add function to fully add an alt block

* resolve current todo!s

* add new requests

* WIP: starting re-orgs

* add last service request

* commit Cargo.lock

* add test

* more docs + cleanup + alt blocks request

* clippy + fmt

* document types

* move tx_fee to helper

* more doc updates

* fmt

* fix imports

* fix fee

* Apply suggestions from code review

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* remove default features from `cuprate-helper`

* review fixes

* fix find_block

* add a test and fix some issues in chain history

* fix clippy

* fmt

* Apply suggestions from code review

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* add dev dep

* cargo update

* move `flush_alt_blocks`

* review fixes

* more review fixes

* fix clippy

* remove INVARIANT comments

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-09-19 16:55:28 +01:00
..
src Blockchain: add alt-block handling (#260) 2024-09-19 16:55:28 +01:00
Cargo.toml Blockchain: add alt-block handling (#260) 2024-09-19 16:55:28 +01:00
README.md test-utils: add crate::rpc::data module (#231) 2024-07-19 00:50:27 +01:00

Test Utils

This crate contains code that can be shared across multiple Cuprate crates tests, this crate should not be included in any Cuprate crate, only in tests.

It currently contains:

  • Code to spawn monerod instances and a testing network zone
  • Real raw and typed Monero data, e.g. Block, Transaction
  • An RPC client to generate types from cuprate_types
  • Raw RPC request/response strings and binary data