Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f82f18a94 | ||
|
|
0bd3fb0b6f | ||
|
|
6a24b47fa8 | ||
|
|
c4e42d9d28 |
@@ -1,4 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
## v1.2.13
|
||||||
|
IMPROVEMENT
|
||||||
|
* [\#1954](https://github.com/bnb-chain/bsc/pull/1954) performance: keep trie prefetch during validation phase
|
||||||
|
|
||||||
|
BUGFIX
|
||||||
|
* [\#1950](https://github.com/bnb-chain/bsc/pull/1950) fix: 2 APIs of get receipt related(#1950)
|
||||||
|
|
||||||
## v1.2.12
|
## v1.2.12
|
||||||
FEATURE
|
FEATURE
|
||||||
* [\#1852](https://github.com/bnb-chain/bsc/pull/1852) discov: add hardcoded bootnodes
|
* [\#1852](https://github.com/bnb-chain/bsc/pull/1852) discov: add hardcoded bootnodes
|
||||||
|
|||||||
@@ -165,20 +165,20 @@ func (s *StateObject) getTrie(db Database) Trie {
|
|||||||
if s.trie == nil {
|
if s.trie == nil {
|
||||||
// Try fetching from prefetcher first
|
// Try fetching from prefetcher first
|
||||||
// We don't prefetch empty tries
|
// We don't prefetch empty tries
|
||||||
prefetcher := s.db.prefetcher
|
// prefetcher := s.db.prefetcher
|
||||||
if s.data.Root != emptyRoot && prefetcher != nil {
|
// if s.data.Root != emptyRoot && prefetcher != nil {
|
||||||
// When the miner is creating the pending state, there is no
|
// When the miner is creating the pending state, there is no
|
||||||
// prefetcher
|
// prefetcher
|
||||||
s.trie = prefetcher.trie(s.data.Root)
|
// s.trie = prefetcher.trie(s.data.Root)
|
||||||
}
|
// }
|
||||||
if s.trie == nil {
|
// if s.trie == nil {
|
||||||
var err error
|
var err error
|
||||||
s.trie, err = db.OpenStorageTrie(s.addrHash, s.data.Root)
|
s.trie, err = db.OpenStorageTrie(s.addrHash, s.data.Root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.trie, _ = db.OpenStorageTrie(s.addrHash, common.Hash{})
|
s.trie, _ = db.OpenStorageTrie(s.addrHash, common.Hash{})
|
||||||
s.setError(fmt.Errorf("can't create storage trie: %v", err))
|
s.setError(fmt.Errorf("can't create storage trie: %v", err))
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
return s.trie
|
return s.trie
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1914,10 +1914,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceiptsByBlockNumber(ctx conte
|
|||||||
txReceipts := make([]map[string]interface{}, 0, len(txs))
|
txReceipts := make([]map[string]interface{}, 0, len(txs))
|
||||||
for idx, receipt := range receipts {
|
for idx, receipt := range receipts {
|
||||||
tx := txs[idx]
|
tx := txs[idx]
|
||||||
var signer types.Signer = types.FrontierSigner{}
|
signer := types.MakeSigner(s.b.ChainConfig(), block.Number())
|
||||||
if tx.Protected() {
|
|
||||||
signer = types.NewEIP155Signer(tx.ChainId())
|
|
||||||
}
|
|
||||||
from, _ := types.Sender(signer, tx)
|
from, _ := types.Sender(signer, tx)
|
||||||
|
|
||||||
fields := map[string]interface{}{
|
fields := map[string]interface{}{
|
||||||
@@ -1932,6 +1929,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceiptsByBlockNumber(ctx conte
|
|||||||
"contractAddress": nil,
|
"contractAddress": nil,
|
||||||
"logs": receipt.Logs,
|
"logs": receipt.Logs,
|
||||||
"logsBloom": receipt.Bloom,
|
"logsBloom": receipt.Bloom,
|
||||||
|
"type": hexutil.Uint(tx.Type()),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assign receipt status or post state.
|
// Assign receipt status or post state.
|
||||||
@@ -2005,6 +2003,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionDataAndReceipt(ctx context.Cont
|
|||||||
"contractAddress": nil,
|
"contractAddress": nil,
|
||||||
"logs": receipt.Logs,
|
"logs": receipt.Logs,
|
||||||
"logsBloom": receipt.Bloom,
|
"logsBloom": receipt.Bloom,
|
||||||
|
"type": hexutil.Uint(tx.Type()),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assign receipt status or post state.
|
// Assign receipt status or post state.
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
VersionMajor = 1 // Major version component of the current release
|
VersionMajor = 1 // Major version component of the current release
|
||||||
VersionMinor = 2 // Minor version component of the current release
|
VersionMinor = 2 // Minor version component of the current release
|
||||||
VersionPatch = 12 // Patch version component of the current release
|
VersionPatch = 13 // Patch version component of the current release
|
||||||
VersionMeta = "" // Version metadata to append to the version string
|
VersionMeta = "" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user