File tree Expand file tree Collapse file tree 5 files changed +14
-0
lines changed Expand file tree Collapse file tree 5 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ if ! test -e /data/db/protocolMagicId; then
44
44
fi
45
45
fi
46
46
47
+ # Enable TraceMempool and PeerSharing
48
+ sed -i \
49
+ -e ' s/"PeerSharing": false/"PeerSharing": true/' \
50
+ -e ' s/"TraceMempool": false/"TraceMempool": true/' \
51
+ /opt/cardano/config/${NETWORK} /config.json
52
+
47
53
echo " Starting: /usr/local/bin/cardano-node run"
48
54
echo " --config /opt/cardano/config/${NETWORK} /config.json"
49
55
echo " --database-path /data/db"
Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ if [[ ${CARDANO_BLOCK_PRODUCER} == true ]]; then
75
75
echo CARDANO_SHELLEY_KES_KEY=${CARDANO_SHELLEY_KES_KEY}
76
76
echo CARDANO_SHELLEY_VRF_KEY=${CARDANO_SHELLEY_VRF_KEY}
77
77
echo CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE=${CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE}
78
+ else
79
+ sed -i \
80
+ -e ' s/"PeerSharing": false/"PeerSharing": true/' \
81
+ -e ' s/"TraceMempool": false/"TraceMempool": true/' \
82
+ ${CARDANO_CONFIG}
78
83
fi
79
84
80
85
echo AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT}
Original file line number Diff line number Diff line change 10
10
"LastKnownBlockVersion-Major" : 3 ,
11
11
"LastKnownBlockVersion-Minor" : 0 ,
12
12
"MaxKnownMajorProtocolVersion" : 2 ,
13
+ "PeerSharing" : false ,
13
14
"Protocol" : " Cardano" ,
14
15
"RequiresNetworkMagic" : " RequiresNoMagic" ,
15
16
"ShelleyGenesisFile" : " shelley-genesis.json" ,
Original file line number Diff line number Diff line change 9
9
"LastKnownBlockVersion-Alt" : 0 ,
10
10
"LastKnownBlockVersion-Major" : 2 ,
11
11
"LastKnownBlockVersion-Minor" : 0 ,
12
+ "PeerSharing" : false ,
12
13
"Protocol" : " Cardano" ,
13
14
"RequiresNetworkMagic" : " RequiresMagic" ,
14
15
"ShelleyGenesisFile" : " shelley-genesis.json" ,
Original file line number Diff line number Diff line change 11
11
"LastKnownBlockVersion-Alt" : 0 ,
12
12
"LastKnownBlockVersion-Major" : 3 ,
13
13
"LastKnownBlockVersion-Minor" : 1 ,
14
+ "PeerSharing" : false ,
14
15
"Protocol" : " Cardano" ,
15
16
"RequiresNetworkMagic" : " RequiresMagic" ,
16
17
"ShelleyGenesisFile" : " shelley-genesis.json" ,
You can’t perform that action at this time.
0 commit comments