Skip to content

Commit 340e052

Browse files
committed
Resolve compiling problem after merging from get-1.10.13
1 parent 0135704 commit 340e052

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

core/tx_jam_indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (indexer *txJamIndexer) updateLoop() {
114114
indexer.head = h
115115
case <-tick.C:
116116
d := indexer.undCounter.Sum()
117-
pendings, _ := indexer.pool.Pending(true)
117+
pendings := indexer.pool.Pending(true)
118118
if d == 0 && len(pendings) == 0 {
119119
break
120120
}

eth/gasprice/prediction.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,7 @@ func (p *Prediction) loop() {
140140
}
141141

142142
func (p *Prediction) update() {
143-
txs, err := p.pool.Pending(true)
144-
if err != nil {
145-
log.Error("failed to get pending transactions", "err", err)
146-
return
147-
}
143+
txs := p.pool.Pending(true)
148144
byprice := make(TxByPrice, 0, len(txs))
149145
for _, ts := range txs {
150146
byprice = append(byprice, ts...)

eth/tracers/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ func (api *API) traceTx(ctx context.Context, message core.Message, txctx *Contex
986986
func (api *API) tracePoSASysTx(ctx context.Context, sender common.Address, tx *types.Transaction, txctx *Context, vmctx vm.BlockContext, statedb *state.StateDB, config *TraceConfig) (interface{}, error) {
987987
// Assemble the structured logger or the JavaScript tracer
988988
var (
989-
tracer vm.Tracer
989+
tracer vm.EVMLogger
990990
err error
991991
)
992992
switch {
@@ -1007,7 +1007,7 @@ func (api *API) tracePoSASysTx(ctx context.Context, sender common.Address, tx *t
10071007
go func() {
10081008
<-deadlineCtx.Done()
10091009
if deadlineCtx.Err() == context.DeadlineExceeded {
1010-
tracer.(*Tracer).Stop(errors.New("execution timeout"))
1010+
tracer.(Tracer).Stop(errors.New("execution timeout"))
10111011
}
10121012
}()
10131013
defer cancel()
@@ -1032,7 +1032,7 @@ func (api *API) tracePoSASysTx(ctx context.Context, sender common.Address, tx *t
10321032
})
10331033
}
10341034

1035-
func (api *API) traceResult(tracer vm.Tracer, result *core.ExecutionResult) (interface{}, error) {
1035+
func (api *API) traceResult(tracer vm.EVMLogger, result *core.ExecutionResult) (interface{}, error) {
10361036
// Depending on the tracer type, format and return the output.
10371037
switch tracer := tracer.(type) {
10381038
case *vm.StructLogger:

internal/ethapi/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"github.com/ethereum/go-ethereum/common"
3535
"github.com/ethereum/go-ethereum/common/hexutil"
3636
"github.com/ethereum/go-ethereum/common/math"
37+
"github.com/ethereum/go-ethereum/consensus"
3738
"github.com/ethereum/go-ethereum/consensus/clique"
3839
"github.com/ethereum/go-ethereum/consensus/ethash"
3940
"github.com/ethereum/go-ethereum/consensus/misc"
@@ -849,7 +850,7 @@ func (s *PublicBlockChainAPI) getSysTransactions(block *types.Block, posa consen
849850
for i, tx := range txs {
850851
sender, _ := types.Sender(signer, tx)
851852
if yes, _ := posa.IsSysTransaction(sender, tx, header); yes {
852-
transactions = append(transactions, newRPCTransaction(tx, bhash, bnumber, uint64(i), nil))
853+
transactions = append(transactions, newRPCTransaction(tx, bhash, bnumber, uint64(i), nil, s.b.ChainConfig()))
853854
}
854855
}
855856
return transactions, nil

0 commit comments

Comments
 (0)