Skip to content

Commit

Permalink
support rpcdaemon
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed Sep 3, 2024
1 parent 5ccb595 commit d8afcaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion turbo/jsonrpc/bsc_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (api *BscImpl) GetVerifyResult(ctx context.Context, blockNr rpc.BlockNumber

// PendingTransactions returns the transactions that are in the transaction pool
// and have a from address that is one of the accounts this node manages.
func (s *BscImpl) PendingTransactions() ([]*RPCTransaction, error) {
func (api *BscImpl) PendingTransactions() ([]*RPCTransaction, error) {
return nil, fmt.Errorf(NotImplemented, "eth_pendingTransactions")
}

Expand Down
6 changes: 1 addition & 5 deletions turbo/jsonrpc/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
package jsonrpc

import (
"github.com/erigontech/erigon/consensus/parlia"

txpool "github.com/erigontech/erigon-lib/gointerfaces/txpoolproto"
"github.com/erigontech/erigon-lib/kv"
"github.com/erigontech/erigon-lib/kv/kvcache"
Expand Down Expand Up @@ -49,8 +47,8 @@ func APIList(db kv.RoDB, eth rpchelper.ApiBackend, txPool txpool.TxpoolClient, m
dbImpl := NewDBAPIImpl() /* deprecated */
adminImpl := NewAdminAPI(eth)
parityImpl := NewParityAPIImpl(base, db)
bscImpl := NewBscAPI(ethImpl)

var bscImpl *BscImpl
var borImpl *BorImpl

type lazy interface {
Expand All @@ -59,8 +57,6 @@ func APIList(db kv.RoDB, eth rpchelper.ApiBackend, txPool txpool.TxpoolClient, m
}

switch engine := engine.(type) {
case *parlia.Parlia:
bscImpl = NewBscAPI(ethImpl)
case *bor.Bor:
borImpl = NewBorAPI(base, db)
case lazy:
Expand Down

0 comments on commit d8afcaa

Please sign in to comment.