기본적인 geth 명령와 비슷하지만 기존에 사용하던 geth를 사용하면 안된다.
https://github.com/Consensys/quorum.git 을 clone 후 build 해서 사용해야 한다.
나 같은 경우 qgeth
로 PATH에 등록해서 사용 중이다.
https://docs.goquorum.consensys.net/concepts/free-gas-network
그렇다고 가스비 설정이 안되는 것은 아니다.
enableGasPriceBlock
옵션 설정.geth init
으로 재실행 해주어야 한다.https://docs.goquorum.consensys.net/concepts/gas-enabled-network
config.enableGasPriceBlock: 1
이렇게 설정하는 듯 하다.https://github.com/Consensys/quorum/blob/master/params/config_test.go#L598...L600
재 실행하면 콘솔에서 확인 가능하다.
https://github.com/ConsenSys/quorum/blob/master/params/config.go#L489
https://github.com/ConsenSys/quorum/blob/master/cmd/geth/main.go#L381
https://github.com/ConsenSys/quorum/blob/master/cmd/geth/main.go#L516...L517
SetGasPrice 함수가 IsGasPriceEnabled 함수를 실행해서 enableGasPriceBlock
genesis 파일의 config 확인 후
설정 안되어 있으면 에러
새로운 트랜잭션이 생성 될 때
quorum/core/types/transaction.go의 GasPrice() 함수를 실행해서 위에 설정한 가스비를 가져옴.
https://github.com/Consensys/quorum/blob/master/core/types/transaction.go#L266
글이 많은 도움이 되었습니다, 감사합니다.