This commit is contained in:
parent
2a4e2c1c85
commit
47d302a9a4
4 changed files with 364 additions and 39 deletions
|
|
@ -375,10 +375,22 @@ export namespace Catcrafts::Server {
|
|||
// of them at once.
|
||||
struct EurcChain {
|
||||
std::string name; // ledger via suffix: "base" -> "eurc-base"
|
||||
std::string rpcUrl;
|
||||
// One or more independent JSON-RPC endpoints for the SAME chain, in
|
||||
// preference order. More than one is the point: a payment is confirmed
|
||||
// only when minConfirmations of them independently agree that the money
|
||||
// is there, so no single node's word can settle an order. The config
|
||||
// spells this "rpcs": [...]; the older single "rpc" still parses and
|
||||
// lands here as a one-element list.
|
||||
std::vector<std::string> rpcUrls;
|
||||
std::string contract; // the EURC token contract on this chain
|
||||
std::string blockTag = "finalized";
|
||||
int decimals = 6;
|
||||
// How many endpoints must independently report a covering balance
|
||||
// before an order settles. Defaults to 2 when at least two endpoints
|
||||
// are configured, 1 when only one is (which is the old behaviour, and
|
||||
// is warned about at load — one source means trusting one operator).
|
||||
// Never exceeds rpcUrls.size().
|
||||
int minConfirmations = 1;
|
||||
// For the order page. chainId names the network in the EIP-681 wallet
|
||||
// link (1 = Ethereum, 8453 = Base); 0 omits the link rather than
|
||||
// guessing. note is a short display hint ("lowest fees") — copy is
|
||||
|
|
|
|||
Loading…
Reference in a new issue