mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rename to cometbft
This commit is contained in:
parent
e3f469dda4
commit
e749dc17e0
1 changed files with 8 additions and 8 deletions
|
|
@ -12,12 +12,12 @@ import (
|
|||
|
||||
const (
|
||||
defaultChainID = "ethereum"
|
||||
defaultTendermintRPCEndpoint = "http://localhost:26657"
|
||||
defaultCometbftRPCEndpoint = "http://localhost:26657"
|
||||
)
|
||||
|
||||
func sendTransactionToSequencer(ctx context.Context, txBytes []byte) error {
|
||||
var (
|
||||
chainID, tendermintRPCEndpoint string
|
||||
chainID, cometbftRPCEndpoint string
|
||||
)
|
||||
|
||||
envChainId := os.Getenv("CHAIN_ID")
|
||||
|
|
@ -25,9 +25,9 @@ func sendTransactionToSequencer(ctx context.Context, txBytes []byte) error {
|
|||
chainID = defaultChainID
|
||||
}
|
||||
|
||||
envTendermintRPCEndpoint := os.Getenv("TENDERMINT_RPC_ENDPOINT")
|
||||
if envTendermintRPCEndpoint == "" {
|
||||
tendermintRPCEndpoint = defaultTendermintRPCEndpoint
|
||||
envCometbftRPCEndpoint := os.Getenv("COMETBFT_RPC_ENDPOINT")
|
||||
if envCometbftRPCEndpoint == "" {
|
||||
cometbftRPCEndpoint = defaultCometbftRPCEndpoint
|
||||
}
|
||||
|
||||
signer, err := client.GenerateSigner()
|
||||
|
|
@ -35,8 +35,8 @@ func sendTransactionToSequencer(ctx context.Context, txBytes []byte) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// default tendermint RPC endpoint
|
||||
c, err := client.NewClient(tendermintRPCEndpoint)
|
||||
// default cometbft RPC endpoint
|
||||
c, err := client.NewClient(cometbftRPCEndpoint)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue