Skip to content

Commit

Permalink
add change for bohr
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC committed Jun 27, 2024
1 parent faa147d commit 804cc96
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ IdleTimeout = 120000000000
[Node.LogConfig]
FilePath = "bsc.log"
MaxBytesSize = 10485760
Level = "info"
Level = "debug"
FileRoot = ""
8 changes: 5 additions & 3 deletions qa-env-resource/chaind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ FullImmutabilityThreshold=90000
MinBlocksForBlobRequests=524288
DefaultExtraReserveForBlobRequests=28800
BreatheBlockInterval=600
FixedTurnLength=1

function startChaind() {
workspace=/server/validator

FeynmanHardforkTime=`cat ${workspace}/hardforkTime.txt|grep hardforkTime|awk -F" " '{print $NF}'`
CancunHardforkTime=`expr ${FeynmanHardforkTime} + 10`
HardforkTime=`cat ${workspace}/hardforkTime.txt|grep hardforkTime|awk -F" " '{print $NF}'`
BohrHardforkTime=`expr ${HardforkTime} + 10`
initLog=${workspace}/init.log
rialtoHash=`cat ${initLog}|grep "database=lightchaindata"|awk -F"=" '{print $NF}'|awk -F'"' '{print $1}'`

Expand All @@ -28,9 +29,10 @@ function startChaind() {
--pprof --pprof.port 6061 \
--syncmode snap --mine --vote --monitor.maliciousvote \
--cache 10480 --light.serve 50 \
--rialtohash ${rialtoHash} --override.cancun ${CancunHardforkTime} --override.haber ${CancunHardforkTime} \
--rialtohash ${rialtoHash} --override.bohr ${BohrHardforkTime} \
--override.immutabilitythreshold ${FullImmutabilityThreshold} --override.breatheblockinterval ${BreatheBlockInterval} \
--override.minforblobrequest ${MinBlocksForBlobRequests} --override.defaultextrareserve ${DefaultExtraReserveForBlobRequests} \
--override.fixedturnlength ${FixedTurnLength} \
>> /mnt/efs/validator/${ip}/bscnode.log 2>&1
}

Expand Down
4 changes: 4 additions & 0 deletions qa-env-resource/upgrade-single.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ cp /tmp/bsc /server/validator/bsc
#rm -rf chaindata les.server nodes triecache

#sed -i -e 's/sleep 5/sleep 40/' /server/validator/chaind.sh
#sed -i -e 's/FixedTurnLength=9/FixedTurnLength=1/' /server/validator/chaind.sh

#/server/validator/bsc init --datadir /server/validator/ /server/validator/genesis.json

#sed -i -e 's/HTTPModules = \[/HTTPModules = \["debug",/g' /server/validator/config.toml
#sed -i -e 's/GlobalSlots = 10000/GlobalSlots = 10000/g' /server/validator/config.toml
#sed -i -e 's/GlobalQueue = 5000/GlobalQueue = 5000/g' /server/validator/config.toml
#sed -i -e 's/Level = "info"/Level = "debug"/g' /server/validator/config.toml

service bsc start

0 comments on commit 804cc96

Please sign in to comment.