mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 02:07:52 +00:00 
			
		
		
		
	Merge eaf0e47b73 into 80208ed9b7
				
					
				
			This commit is contained in:
		
						commit
						1bab907dba
					
				@ -29,7 +29,7 @@ wETH_CONTRACT_ADDRESS=0x5d6D67a665C9F169B0f9436E05B11108C1606043
 | 
			
		||||
kava config node "${CHAIN_API_URL}"
 | 
			
		||||
kava config chain-id "${CHAIN_ID}"
 | 
			
		||||
 | 
			
		||||
# use the test keyring to allow scriptng key generation
 | 
			
		||||
# use the test keyring to allow scripting key generation
 | 
			
		||||
kava config keyring-backend test
 | 
			
		||||
 | 
			
		||||
# wait for transactions to be committed per CLI command
 | 
			
		||||
 | 
			
		||||
@ -10,7 +10,7 @@ do
 | 
			
		||||
    # Possible states: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-lifecycle.html
 | 
			
		||||
    case "$autoscaling_group_state" in
 | 
			
		||||
    Standby)
 | 
			
		||||
        # exit standby to make the node elgible for reciving
 | 
			
		||||
        # exit standby to make the node eligible for reciving
 | 
			
		||||
        # requests from the target groups for the public load balancer
 | 
			
		||||
        autoscaling_group_name=$(aws autoscaling describe-auto-scaling-instances --instance-ids "$chain_node_instance_id" | jq -r '[.AutoScalingInstances | .[].AutoScalingGroupName] | join(" ")')
 | 
			
		||||
 | 
			
		||||
@ -19,7 +19,7 @@ do
 | 
			
		||||
            --auto-scaling-group-name "$autoscaling_group_name"
 | 
			
		||||
        ;;
 | 
			
		||||
    *)
 | 
			
		||||
        echo "instance ($chain_node_instance_id) not in an elgible state ($autoscaling_group_state) for exiting standby, skipping"
 | 
			
		||||
        echo "instance ($chain_node_instance_id) not in an eligible state ($autoscaling_group_state) for exiting standby, skipping"
 | 
			
		||||
        ;;
 | 
			
		||||
    esac
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
@ -21,7 +21,7 @@ do
 | 
			
		||||
            --should-decrement-desired-capacity
 | 
			
		||||
        ;;
 | 
			
		||||
    *)
 | 
			
		||||
        echo "instance ($chain_node_instance_id) not in an elgible state ($autoscaling_group_state) for going on standby, skipping"
 | 
			
		||||
        echo "instance ($chain_node_instance_id) not in an eligible state ($autoscaling_group_state) for going on standby, skipping"
 | 
			
		||||
        ;;
 | 
			
		||||
    esac
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/scripts/seed-internal-testnet.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/scripts/seed-internal-testnet.sh
									
									
									
									
										vendored
									
									
								
							@ -13,7 +13,7 @@ AVG_SECONDS_BETWEEN_BLOCKS=6.5
 | 
			
		||||
kava config node "${CHAIN_API_URL}"
 | 
			
		||||
kava config chain-id "${CHAIN_ID}"
 | 
			
		||||
 | 
			
		||||
# use the test keyring to allow scriptng key generation
 | 
			
		||||
# use the test keyring to allow scripting key generation
 | 
			
		||||
kava config keyring-backend test
 | 
			
		||||
 | 
			
		||||
# wait for transactions to be committed per CLI command
 | 
			
		||||
@ -143,7 +143,7 @@ kava tx issuance issue 6000000000ukava kava1vlpsrmdyuywvaqrv7rx6xga224sqfwz3fyfh
 | 
			
		||||
 | 
			
		||||
sleep $AVG_SECONDS_BETWEEN_BLOCKS
 | 
			
		||||
 | 
			
		||||
# parse space seperated list of validators
 | 
			
		||||
# parse space separated list of validators
 | 
			
		||||
# into bash array
 | 
			
		||||
read -r -a GENESIS_VALIDATOR_ADDRESS_ARRAY <<<"$GENESIS_VALIDATOR_ADDRESSES"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/scripts/seed-protonet.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/scripts/seed-protonet.sh
									
									
									
									
										vendored
									
									
								
							@ -13,7 +13,7 @@ AVG_SECONDS_BETWEEN_BLOCKS=6.5
 | 
			
		||||
kava config node "${CHAIN_API_URL}"
 | 
			
		||||
kava config chain-id "${CHAIN_ID}"
 | 
			
		||||
 | 
			
		||||
# use the test keyring to allow scriptng key generation
 | 
			
		||||
# use the test keyring to allow scripting key generation
 | 
			
		||||
kava config keyring-backend test
 | 
			
		||||
 | 
			
		||||
# wait for transactions to be committed per CLI command
 | 
			
		||||
@ -103,7 +103,7 @@ kava tx issuance issue 6000000000ukava kava1vlpsrmdyuywvaqrv7rx6xga224sqfwz3fyfh
 | 
			
		||||
 | 
			
		||||
sleep $AVG_SECONDS_BETWEEN_BLOCKS
 | 
			
		||||
 | 
			
		||||
# parse space seperated list of validators
 | 
			
		||||
# parse space separated list of validators
 | 
			
		||||
# into bash array
 | 
			
		||||
read -r -a GENESIS_VALIDATOR_ADDRESS_ARRAY <<< "$GENESIS_VALIDATOR_ADDRESSES"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user