Skip to content

Commit

Permalink
remove incorrect log (ethereum#86)
Browse files Browse the repository at this point in the history
* remove log and useless code
  • Loading branch information
ping-ke authored May 17, 2022
1 parent 183e51f commit e93effd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions consensus/tendermint/tendermint.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ func New(config *params.TendermintConfig) (*Tendermint, error) {
// SignerFn hashes and signs the data to be signed by a backing account.
type SignerFn func(signer accounts.Account, mimeType string, message []byte) ([]byte, error)

type SignTxFn func(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)

// Authorize injects a private key into the consensus engine to mint new blocks
// with.
func (c *Tendermint) Authorize(signer common.Address, signFn SignerFn) {
Expand Down
1 change: 0 additions & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ func (s *PublicBlockChainAPI) GetHeaderByHash(ctx context.Context, hash common.H
// * When fullTx is true all transactions in the block are returned, otherwise
// only the transaction hash is returned.
func (s *PublicBlockChainAPI) GetBlockByNumber(ctx context.Context, number rpc.BlockNumber, fullTx bool) (map[string]interface{}, error) {
log.Warn("=============================GetBlockByNumber==============================")
block, err := s.b.BlockByNumber(ctx, number)
if block != nil && err == nil {
response, err := s.rpcMarshalBlock(ctx, block, true, fullTx)
Expand Down

0 comments on commit e93effd

Please sign in to comment.