Skip to content

Commit df65994

Browse files
committed
Staging: Introduce signetside, a sidechain to signet
1 parent a1328c1 commit df65994

6 files changed

Lines changed: 70 additions & 5 deletions

File tree

docker/staging/conf/AVAILABLE_CHAINS.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,50 @@
236236
"chain_id": "signet_genesis_hash",
237237
"stats_support": true
238238
}
239+
},
240+
241+
"signetside": {
242+
"proc": {
243+
"block_gen": [
244+
60,
245+
180,
246+
"onesigner"
247+
],
248+
"tx_gen": [
249+
60,
250+
180
251+
],
252+
"pegin_gen": [
253+
60,
254+
180
255+
],
256+
"pegout_gen": [
257+
60,
258+
180
259+
],
260+
"greedy_cacher": [
261+
60,
262+
420,
263+
true,
264+
true
265+
],
266+
"mempool_cacher": [
267+
60,
268+
180
269+
],
270+
"reorg_cron": [
271+
60,
272+
180,
273+
false,
274+
true
275+
]
276+
},
277+
"properties": {
278+
"chain_id": "80206e1a60d1e2bd87e528785114c5f99ae1a9da1c694a6f1c60af6df4fdf195",
279+
"parent_chain": "signet",
280+
"parent_chain_has_CT": false,
281+
"stats_support": true
282+
}
239283
}
240284

241285
}

docker/staging/conf/daemons.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,10 @@ ELEMENTSIDE_PORT=7048
6868
ELEMENTSIDE_ZMQ=tcp://0.0.0.0:7049
6969
ELEMENTSIDE_RPCUSER=user7047
7070
ELEMENTSIDE_RPCPASSWORD=password7047
71+
72+
SIGNETSIDE_DATADIR=/build_docker/.signetside/
73+
SIGNETSIDE_RPCPORT=7050
74+
SIGNETSIDE_PORT=7051
75+
SIGNETSIDE_ZMQ=tcp://0.0.0.0:7052
76+
SIGNETSIDE_RPCUSER=user7050
77+
SIGNETSIDE_RPCPASSWORD=password7050

docker/staging/conf/daemons.proc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ testnet3: ./$BITCOIN_BRANCH_DIR/src/$BITCOIN_DAEMON -rpcbind=$TESTNET3_HOST:$TES
55

66
regtest: ./$BITCOIN_BRANCH_DIR/src/$BITCOIN_DAEMON -rpcbind=$REGTEST_HOST:$REGTEST_RPCPORT -datadir=$REGTEST_DATADIR -rpcallowip=$REGTEST_ALLLOWFROM -rpcuser=$REGTEST_RPCUSER -rpcpassword=$REGTEST_RPCPASSWORD -zmqpubhashblock=$REGTEST_ZMQ -port=$REGTEST_PORT -logips -logtimestamps -server -txindex -listen -discover -dbcache=8000 -maxmempool=8000 -regtest -addresstype=legacy
77

8-
elementsregtest: ./$ELEMENTS_BRANCH_DIR/src/$ELEMENTS_DAEMON -printtoconsole -rpcbind=$ELEMENTS_HOST:$ELEMENTSREGTEST_RPCPORT -datadir=$ELEMENTSREGTEST_DATADIR -rpcallowip=$ELEMENTS_ALLLOWFROM -rpcuser=$ELEMENTSREGTEST_RPCUSER -rpcpassword=$ELEMENTSREGTEST_RPCPASSWORD -port=$ELEMENTSREGTEST_PORT -zmqpubhashblock=$ELEMENTSREGTEST_ZMQ -logips -logtimestamps -server -txindex -listen -discover -validatepegin=0 -dbcache=8000 -maxmempool=8000 -initialfreecoins=21000000000000 -anyonecanspendaremine -fdefaultconsistencychecks=0 -regtest
8+
elementsregtest: ./$ELEMENTS_BRANCH_DIR/src/$ELEMENTS_DAEMON -rpcbind=$ELEMENTS_HOST:$ELEMENTSREGTEST_RPCPORT -datadir=$ELEMENTSREGTEST_DATADIR -rpcallowip=$ELEMENTS_ALLLOWFROM -rpcuser=$ELEMENTSREGTEST_RPCUSER -rpcpassword=$ELEMENTSREGTEST_RPCPASSWORD -port=$ELEMENTSREGTEST_PORT -zmqpubhashblock=$ELEMENTSREGTEST_ZMQ -logips -logtimestamps -server -txindex -listen -discover -validatepegin=0 -dbcache=8000 -maxmempool=8000 -initialfreecoins=21000000000000 -anyonecanspendaremine -fdefaultconsistencychecks=0 -regtest
99

10-
elementsparent: ./$ELEMENTS_BRANCH_DIR/src/$ELEMENTS_DAEMON -printtoconsole -rpcbind=$ELEMENTS_HOST:$ELEMENTSPARENT_RPCPORT -datadir=$ELEMENTSPARENT_DATADIR -rpcallowip=$ELEMENTS_ALLLOWFROM -rpcuser=$ELEMENTSPARENT_RPCUSER -rpcpassword=$ELEMENTSPARENT_RPCPASSWORD -port=$ELEMENTSPARENT_PORT -zmqpubhashblock=$ELEMENTSPARENT_ZMQ -logips -logtimestamps -server -txindex -listen -discover -validatepegin=0 -dbcache=8000 -maxmempool=8000 -initialfreecoins=21000000000000 -anyonecanspendaremine -fdefaultconsistencychecks=0 -chain=elementsparent -signblockscript=514104b234c5f6ce10cbe9e7f100a06a895c9029dcdf5d14682a330e494ab8b4f04c8023e040d839932779c4f01da3d318ce8940c67399ffb9a28654214f92e4e8bbd751ae
10+
elementsparent: ./$ELEMENTS_BRANCH_DIR/src/$ELEMENTS_DAEMON -rpcbind=$ELEMENTS_HOST:$ELEMENTSPARENT_RPCPORT -datadir=$ELEMENTSPARENT_DATADIR -rpcallowip=$ELEMENTS_ALLLOWFROM -rpcuser=$ELEMENTSPARENT_RPCUSER -rpcpassword=$ELEMENTSPARENT_RPCPASSWORD -port=$ELEMENTSPARENT_PORT -zmqpubhashblock=$ELEMENTSPARENT_ZMQ -logips -logtimestamps -server -txindex -listen -discover -validatepegin=0 -dbcache=8000 -maxmempool=8000 -initialfreecoins=21000000000000 -anyonecanspendaremine -fdefaultconsistencychecks=0 -chain=elementsparent -signblockscript=514104b234c5f6ce10cbe9e7f100a06a895c9029dcdf5d14682a330e494ab8b4f04c8023e040d839932779c4f01da3d318ce8940c67399ffb9a28654214f92e4e8bbd751ae
1111

12-
elementside: sleep 1 ; ./$ELEMENTS_BRANCH_DIR/src/$ELEMENTS_DAEMON -rpcbind=$ELEMENTS_HOST:$ELEMENTSIDE_RPCPORT -datadir=$ELEMENTSIDE_DATADIR -rpcallowip=$ELEMENTS_ALLLOWFROM -rpcuser=$ELEMENTSIDE_RPCUSER -rpcpassword=$ELEMENTSIDE_RPCPASSWORD -port=$ELEMENTSIDE_PORT -zmqpubhashblock=$ELEMENTSIDE_ZMQ -logips -logtimestamps -server -txindex -listen -discover -validatepegin=1 -dbcache=8000 -maxmempool=8000 -initialfreecoins=0 -anyonecanspendaremine=0 -fdefaultconsistencychecks=0 -chain=elementside -peginconfirmationdepth=10 -parentpubkeyprefix=235 -parentscriptprefix=75 -con_parent_chain_has_pow=0 -mainchainrpchost=$ELEMENTS_HOST -mainchainrpcport=$ELEMENTSPARENT_RPCPORT -mainchainrpcuser=$ELEMENTSPARENT_RPCUSER -mainchainrpcpassword=$ELEMENTSPARENT_RPCPASSWORD -parentgenesisblockhash=e34a37cff130f0844b11047127e3069b72ac95b000d380d2cee2b91e34f1762a -signblockscript=51410493185b8a6a25d23c432c3794f1369dcc354667a610bec2bc0d376f35a66ac707d29d92025e2f05e93d9d2e6d2c21c510caf6a765b96db30fbe46c7631e4f6d5451ae -con_parent_chain_signblockscript=514104b234c5f6ce10cbe9e7f100a06a895c9029dcdf5d14682a330e494ab8b4f04c8023e040d839932779c4f01da3d318ce8940c67399ffb9a28654214f92e4e8bbd751ae
12+
elementside: sleep 1 ; ./$ELEMENTS_BRANCH_DIR/src/$ELEMENTS_DAEMON -rpcbind=$ELEMENTS_HOST:$ELEMENTSIDE_RPCPORT -datadir=$ELEMENTSIDE_DATADIR -rpcallowip=$ELEMENTS_ALLLOWFROM -rpcuser=$ELEMENTSIDE_RPCUSER -rpcpassword=$ELEMENTSIDE_RPCPASSWORD -port=$ELEMENTSIDE_PORT -zmqpubhashblock=$ELEMENTSIDE_ZMQ -logips -logtimestamps -server -txindex -listen -discover -validatepegin=1 -dbcache=8000 -maxmempool=8000 -initialfreecoins=0 -anyonecanspendaremine=0 -fdefaultconsistencychecks=0 -chain=elementside -peginconfirmationdepth=10 -parentpubkeyprefix=235 -parentscriptprefix=75 -mainchainrpchost=$ELEMENTS_HOST -mainchainrpcport=$ELEMENTSPARENT_RPCPORT -mainchainrpcuser=$ELEMENTSPARENT_RPCUSER -mainchainrpcpassword=$ELEMENTSPARENT_RPCPASSWORD -parentgenesisblockhash=e34a37cff130f0844b11047127e3069b72ac95b000d380d2cee2b91e34f1762a -signblockscript=51410493185b8a6a25d23c432c3794f1369dcc354667a610bec2bc0d376f35a66ac707d29d92025e2f05e93d9d2e6d2c21c510caf6a765b96db30fbe46c7631e4f6d5451ae -con_parent_chain_signblockscript=514104b234c5f6ce10cbe9e7f100a06a895c9029dcdf5d14682a330e494ab8b4f04c8023e040d839932779c4f01da3d318ce8940c67399ffb9a28654214f92e4e8bbd751ae
1313

14-
signet: ./$SIGNET_BRANCH_DIR/src/$BITCOIN_DAEMON -rpcbind=$SIGNET_HOST:$SIGNET_RPCPORT -datadir=$SIGNET_DATADIR -rpcallowip=$SIGNET_ALLLOWFROM -rpcuser=$SIGNET_RPCUSER -rpcpassword=$SIGNET_RPCPASSWORD -zmqpubhashblock=$SIGNET_ZMQ -port=$SIGNET_PORT -logips -logtimestamps -server -txindex -listen -discover -dbcache=8000 -maxmempool=8000 -addresstype=legacy -signet -signet_blockscript=512102551778971154247208b530bb8325c73e3c7f3a1b13019bc134cdd73427b192e551ae -signet_seednode=178.128.221.177 -signet_siglen=77 -fallbackfee=0.00001
14+
signet: ./$SIGNET_BRANCH_DIR/src/$BITCOIN_DAEMON -printtoconsole -rpcbind=$SIGNET_HOST:$SIGNET_RPCPORT -datadir=$SIGNET_DATADIR -rpcallowip=$SIGNET_ALLLOWFROM -rpcuser=$SIGNET_RPCUSER -rpcpassword=$SIGNET_RPCPASSWORD -zmqpubhashblock=$SIGNET_ZMQ -port=$SIGNET_PORT -logips -logtimestamps -server -txindex -listen -discover -dbcache=8000 -maxmempool=8000 -addresstype=legacy -signet -signet_blockscript=512102551778971154247208b530bb8325c73e3c7f3a1b13019bc134cdd73427b192e551ae -signet_seednode=178.128.221.177 -signet_siglen=77 -fallbackfee=0.00001
15+
16+
signetside: sleep 1 ; ./$ELEMENTS_BRANCH_DIR/src/$ELEMENTS_DAEMON -printtoconsole -rpcbind=$ELEMENTS_HOST:$SIGNETSIDE_RPCPORT -datadir=$SIGNETSIDE_DATADIR -rpcallowip=$ELEMENTS_ALLLOWFROM -rpcuser=$SIGNETSIDE_RPCUSER -rpcpassword=$SIGNETSIDE_RPCPASSWORD -port=$SIGNETSIDE_PORT -zmqpubhashblock=$SIGNETSIDE_ZMQ -logips -logtimestamps -server -txindex -listen -discover -validatepegin=1 -dbcache=8000 -maxmempool=8000 -initialfreecoins=0 -anyonecanspendaremine=0 -fdefaultconsistencychecks=0 -chain=signetside -peginconfirmationdepth=2 -parentpubkeyprefix=125 -parentscriptprefix=87 -mainchainrpchost=$ELEMENTS_HOST -mainchainrpcport=$SIGNET_RPCPORT -mainchainrpcuser=$SIGNET_RPCUSER -mainchainrpcpassword=$SIGNET_RPCPASSWORD -parentgenesisblockhash=22861f488a5c6cb033a843e476581a8abf5b82a34926babfde1241ed97ba268e -signblockscript=514104b234c5f6ce10cbe9e7f100a06a895c9029dcdf5d14682a330e494ab8b4f04c8023e040d839932779c4f01da3d318ce8940c67399ffb9a28654214f92e4e8bbd751ae -con_parent_chain_signblockscript=512102551778971154247208b530bb8325c73e3c7f3a1b13019bc134cdd73427b192e551ae -con_parent_is_signet=1 -con_parent_signet_siglen=77

docker/staging/conf/explorer.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ ELEMENTSIDE_ADR=daemons:7047
5353
ELEMENTSIDE_ZMQ=tcp://daemons:7049
5454
ELEMENTSIDE_RPCUSER=user7047
5555
ELEMENTSIDE_RPCPASSWORD=password7047
56+
57+
SIGNETSIDE_ADR=daemons:7050
58+
SIGNETSIDE_ZMQ=tcp://daemons:7052
59+
SIGNETSIDE_RPCUSER=user7050
60+
SIGNETSIDE_RPCPASSWORD=password7050

docker/staging/conf/explorer.proc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ web: gunicorn webflask:app -b "$WEB_HOST:$WEB_PORT" -w $WEB_WORKERS -k gevent --
55
# Force db restart for all chains by removing $ORM_SCHEMA/schema.json:
66
# --forcechains=elementside,elementsparent --forcetables=chaininfo,tx,input,output
77

8-
create_db: python explorer/bin/model2db.py --address $DB_PROXY_ADR --dbaddress $DB_BACKEND_ADR --dbtype $DB_PROXY_TYPE --dbname $DB_NAME --dbuser $DB_USER --dbpass $DB_PASS --model $ORM_MODEL --modelschema $ORM_SCHEMA --chains=bitcoin,testnet3,regtest,elementsregtest,elementsparent,elementside,signet --forcechains=elementside,elementsparent,signet
8+
create_db: python explorer/bin/model2db.py --address $DB_PROXY_ADR --dbaddress $DB_BACKEND_ADR --dbtype $DB_PROXY_TYPE --dbname $DB_NAME --dbuser $DB_USER --dbpass $DB_PASS --model $ORM_MODEL --modelschema $ORM_SCHEMA --chains=bitcoin,testnet3,regtest,elementsregtest,elementsparent,elementside,signet,signetside --forcechains=elementside,elementsparent,signet,signetside
99

1010

1111
mempool_bitcoin: python explorer/bin/mempool_cacher.py --chain bitcoin
@@ -46,3 +46,9 @@ subscriber_elementside: python explorer/bin/chain_subscriber.py --chain elements
4646
reorg_cron_elementside: python explorer/bin/reorg_cron.py --chain elementside
4747
generator_elementside: python explorer/bin/generator.py --chain elementside
4848
greedy_cacher_elementside: python explorer/bin/greedy_cacher.py --chain elementside
49+
50+
mempool_signetside: python explorer/bin/mempool_cacher.py --chain signetside
51+
subscriber_signetside: python explorer/bin/chain_subscriber.py --chain signetside
52+
reorg_cron_signetside: python explorer/bin/reorg_cron.py --chain signetside
53+
generator_signetside: python explorer/bin/generator.py --chain signetside
54+
greedy_cacher_signetside: python explorer/bin/greedy_cacher.py --chain signetside

docker/staging/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ services:
3030
- ../../../explorer-data/testnet3:/build_docker/.testnet3
3131
- ../../../explorer-data/regtest:/build_docker/.regtest
3232
- ../../../explorer-data/signet:/build_docker/.signet
33+
- ../../../explorer-data/signetside:/build_docker/.signetside
3334
- ../../../explorer-data/elementsregtest:/build_docker/.elements
3435
- ../../../explorer-data/elementsparent:/build_docker/.elementsparent
3536
- ../../../explorer-data/elementside:/build_docker/.elementside

0 commit comments

Comments
 (0)