good morning!!!!

Skip to content
Snippets Groups Projects
  1. Aug 10, 2021
  2. Jul 08, 2021
  3. Jul 06, 2021
  4. Jun 30, 2021
  5. Jun 28, 2021
    • Zsolt Felföldi's avatar
      eth/gasprice: implement feeHistory API (#23033) · 35dbf7a8
      Zsolt Felföldi authored
      
      * eth/gasprice: implement feeHistory API
      
      * eth/gasprice: factored out resolveBlockRange
      
      * eth/gasprice: add sanity check for missing block
      
      * eth/gasprice: fetch actual gas used from receipts
      
      * miner, eth/gasprice: add PendingBlockAndReceipts
      
      * internal/ethapi: use hexutil.Big
      
      * eth/gasprice: return error when requesting beyond head block
      
      * eth/gasprice: fixed tests and return errors correctly
      
      * eth/gasprice: rename receiver name
      
      * eth/gasprice: return directly if blockCount == 0
      
      Co-authored-by: default avatarrjl493456442 <garyrong0905@gmail.com>
      35dbf7a8
  6. Jun 08, 2021
  7. Jun 04, 2021
  8. May 21, 2021
    • Martin Holst Swende's avatar
      EIP-1559: miner changes (#22896) · a6c46278
      Martin Holst Swende authored
      
      * core/types, miner: create TxWithMinerFee wrapper, add EIP-1559 support to TransactionsByMinerFeeAndNonce
      
      miner: set base fee when creating a new header, handle gas limit, log miner fees
      
      * all: rename to NewTransactionsByPriceAndNonce
      
      * core/types, miner: rename to NewTransactionsByPriceAndNonce + EffectiveTip
      
      miner: activate 1559 for testGenerateBlockAndImport tests
      
      * core,miner: revert naming to TransactionsByPriceAndTime
      
      * core/types/transaction: update effective tip calculation logic
      
      * miner: update aleut to london
      
      * core/types/transaction_test: use correct signer for 1559 txs + add back sender check
      
      * miner/worker: calculate gas target from gas limit
      
      * core, miner: fix block  gas limits for 1559
      
      Co-authored-by: default avatarAnsgar Dietrichs <adietrichs@gmail.com>
      Co-authored-by: default avatarlightclient@protonmail.com <lightclient@protonmail.com>
      a6c46278
  9. Feb 25, 2021
    • lightclient's avatar
      all: add support for EIP-2718, EIP-2930 transactions (#21502) · bbfb1e40
      lightclient authored
      
      This adds support for EIP-2718 typed transactions as well as EIP-2930
      access list transactions (tx type 1). These EIPs are scheduled for the
      Berlin fork.
      
      There very few changes to existing APIs in core/types, and several new APIs
      to deal with access list transactions. In particular, there are two new
      constructor functions for transactions: types.NewTx and types.SignNewTx.
      Since the canonical encoding of typed transactions is not RLP-compatible,
      Transaction now has new methods for encoding and decoding: MarshalBinary
      and UnmarshalBinary.
      
      The existing EIP-155 signer does not support the new transaction types.
      All code dealing with transaction signatures should be updated to use the
      newer EIP-2930 signer. To make this easier for future updates, we have
      added new constructor functions for types.Signer: types.LatestSigner and
      types.LatestSignerForChainID. 
      
      This change also adds support for the YoloV3 testnet.
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      Co-authored-by: default avatarRyan Schneider <ryanleeschneider@gmail.com>
      bbfb1e40
  10. Feb 02, 2021
  11. Jan 20, 2021
  12. Jan 05, 2021
    • Martin Holst Swende's avatar
      miner: avoid sleeping in miner (#22108) · 9584f56b
      Martin Holst Swende authored
      This PR removes a logic in the miner, which was originally intended to help temporary testnets based on ethash from "running off into the future". If the difficulty was low, and a few computers started mining several blocks per second, the ethash rules (which demand 1s delay between blocks) would push the blocktimes further and further away.
      The solution was to make the miner sleep while this happened.
      
      Nowadays, this problem is solved instead by PoA chains, and it's recommended to let testnets and devnets be based on clique instead. The existing logic is problematic, since it can cause stalls within the miner making it difficult for remote workers to submit work if the channel is blocked on a sleep.
      
      Credits to Saar Tochner for reporting this via the bug bounty
      9584f56b
  13. Dec 11, 2020
    • lzhfromustc's avatar
      miner, test: fix potential goroutine leak (#21989) · 62dc59c2
      lzhfromustc authored
      In miner/worker.go, there are two goroutine using channel w.newWorkCh: newWorkerLoop() sends to this channel, and mainLoop() receives from this channel. Only the receive operation is in a select.
      
      However, w.exitCh may be closed by another goroutine. This is fine for the receive since receive is in select, but if the send operation is blocking, then it will block forever. This commit puts the send in a select, so it won't block even if w.exitCh is closed.
      
      Similarly, there are two goroutines using channel errc: the parent that runs the test receives from it, and the child created at line 573 sends to it. If the parent goroutine exits too early by calling t.Fatalf() at line 614, then the child goroutine will be blocked at line 574 forever. This commit adds 1 buffer to errc. Now send will not block, and receive is not influenced because receive still needs to wait for the send.
      62dc59c2
  14. Dec 04, 2020
    • Martin Holst Swende's avatar
      core: improve contextual information on core errors (#21869) · 7770e41c
      Martin Holst Swende authored
      A lot of times when we hit 'core' errors, example: invalid tx, the information provided is
      insufficient. We miss several pieces of information: what account has nonce too high,
      and what transaction in that block was offending?
      
      This PR adds that information, using the new type of wrapped errors.
      It also adds a testcase which (partly) verifies the output from the errors.
      
      The first commit changes all usage of direct equality-checks on core errors, into
      using errors.Is. The second commit adds contextual information. This wraps most
      of the core errors with more information, and also wraps it one more time in
      stateprocessor, to further provide tx index and tx hash, if such a tx is encoutered in
      a block. The third commit uses the chainmaker to try to generate chains with such
      errors in them, thus triggering the errors and checking that the generated string meets
      expectations.
      7770e41c
  15. Sep 10, 2020
  16. Aug 21, 2020
  17. Jul 28, 2020
  18. May 12, 2020
  19. Apr 02, 2020
  20. Dec 10, 2019
  21. Nov 29, 2019
    • Gary Rong's avatar
      core, miner: remove PostChainEvents (#19396) · fc7e0fe6
      Gary Rong authored
      This change:
      
      - removes the PostChainEvents method on core.BlockChain.
      - sorts 'removed log' events by block number.
      - fire the NewChainHead event if we inject a canonical block into the chain
        even if the entire insertion is not successful.
      - guarantees correct event ordering in all cases.
      fc7e0fe6
  22. Nov 20, 2019
  23. Sep 12, 2019
  24. Jun 19, 2019
  25. Apr 30, 2019
  26. Apr 23, 2019
    • Gary Rong's avatar
      miner: polish miner configuration (#19480) · 6269e557
      Gary Rong authored
      * cmd, eth, miner: disable advance sealing if user require
      
      * cmd, console, miner, les, eth: wrap the miner config
      
      * eth: remove todo
      
      * cmd, miner: revert noadvance flag
      
      The reason for this is: if the transaction execution is even longer
      than block time, then this kind of transactions is DoS attack.
      6269e557
  27. Apr 02, 2019
  28. Mar 27, 2019
  29. Dec 06, 2018
  30. Sep 20, 2018
  31. Aug 29, 2018
  32. Aug 28, 2018
  33. Aug 23, 2018
  34. Aug 22, 2018
  35. Aug 21, 2018
  36. Aug 17, 2018
Loading