From 805f1d955e7f0612e420a9dc6dbf3c103500e760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Le=CC=81o=20Haf?= Date: Thu, 22 Aug 2024 21:48:08 +0200 Subject: [PATCH] new `Template construction.` section --- .github/workflows/buildService.yml | 4 +- scripts/services/getConfig.ts | 77 ++++++++++++++++-------------- 2 files changed, 44 insertions(+), 37 deletions(-) diff --git a/.github/workflows/buildService.yml b/.github/workflows/buildService.yml index 6c7db34..cf6b9f8 100644 --- a/.github/workflows/buildService.yml +++ b/.github/workflows/buildService.yml @@ -4,10 +4,10 @@ on: workflow_dispatch: pull_request: paths-ignore: ['*.md'] - branches: ['main', 'master', 'knots', 'knots-for-community'] + branches: ['main', 'master', 'knots', 'knots-for-community', 'new-config'] push: paths-ignore: ['*.md'] - branches: ['main', 'master', 'knots', 'knots-for-community'] + branches: ['main', 'master', 'knots', 'knots-for-community', 'new-config'] jobs: BuildPackage: diff --git a/scripts/services/getConfig.ts b/scripts/services/getConfig.ts index bd7e9fb..2277756 100644 --- a/scripts/services/getConfig.ts +++ b/scripts/services/getConfig.ts @@ -22,6 +22,48 @@ export const getConfig: T.ExpectedExports.getConfig = async (effects) => { target: "tor-address", interface: "rpc", }, + blkconstr: { + type: "object", + name: "Template construction.", + description: "Options about standard policies and mining block templates.", + spec: { + datacarrier: { + type: "boolean", + name: "Datacarrier", + description: "Relay and mine data carrier transactions", + default: true, + }, + datacarriersize: { + type: "number", + nullable: false, + name: "Datacarrier size", + description: + "Maximum size of arbitrary data to relay and mine.", + range: "[0,10000]", + integral: true, + units: "bytes", + default: 42, + }, + permitbaremultisig: { + type: "boolean", + name: "Permitbaremultisig", + description: "Relay non-P2SH multisig", + default: false, + }, + rejectparasites: { + type: "boolean", + name: "Reject Parasites", + description: "Reject parasites transactions", + default: true, + }, + rejecttokens: { + type: "boolean", + name: "Reject Tokens", + description: "Reject tokens transactions (runes)", + default: false, + }, + } + }, rpc: { type: "object", name: "RPC Settings", @@ -124,41 +166,6 @@ export const getConfig: T.ExpectedExports.getConfig = async (effects) => { description: "Enable the ZeroMQ interface", default: true, }, - datacarrier: { - type: "boolean", - name: "Datacarrier", - description: "Relay and mine data carrier transactions", - default: true, - }, - datacarriersize: { - type: "number", - nullable: false, - name: "Datacarrier size", - description: - "Maximum size of arbitrary data to relay and mine.", - range: "[0,10000]", - integral: true, - units: "bytes", - default: 42, - }, - permitbaremultisig: { - type: "boolean", - name: "Permitbaremultisig", - description: "Relay non-P2SH multisig", - default: false, - }, - rejectparasites: { - type: "boolean", - name: "Reject Parasites", - description: "Reject parasites transactions", - default: true, - }, - rejecttokens: { - type: "boolean", - name: "Reject Tokens", - description: "Reject tokens transactions (runes)", - default: false, - }, txindex: { type: "boolean", name: "Transaction Index",