mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Broadcast special Tx through pairRW
This commit is contained in:
parent
192a985253
commit
c243f37fc4
2 changed files with 6 additions and 6 deletions
|
|
@ -690,7 +690,7 @@ func (bc *BlockChain) procFutureBlocks() {
|
||||||
|
|
||||||
// Insert one by one as chain insertion needs contiguous ancestry between blocks
|
// Insert one by one as chain insertion needs contiguous ancestry between blocks
|
||||||
for i := range blocks {
|
for i := range blocks {
|
||||||
bc.InsertChain(blocks[i: i+1])
|
bc.InsertChain(blocks[i : i+1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -699,9 +699,9 @@ func (bc *BlockChain) procFutureBlocks() {
|
||||||
type WriteStatus byte
|
type WriteStatus byte
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NonStatTy WriteStatus = iota
|
NonStatTy WriteStatus = iota
|
||||||
CanonStatTy
|
CanonStatTy
|
||||||
SideStatTy
|
SideStatTy
|
||||||
)
|
)
|
||||||
|
|
||||||
// Rollback is designed to remove a chain of links from the database that aren't
|
// Rollback is designed to remove a chain of links from the database that aren't
|
||||||
|
|
@ -1243,7 +1243,7 @@ func (st *insertStats) report(chain []*types.Block, index int, cache common.Stor
|
||||||
if index == len(chain)-1 || elapsed >= statsReportLimit {
|
if index == len(chain)-1 || elapsed >= statsReportLimit {
|
||||||
var (
|
var (
|
||||||
end = chain[index]
|
end = chain[index]
|
||||||
txs = countTransactions(chain[st.lastIndex: index+1])
|
txs = countTransactions(chain[st.lastIndex : index+1])
|
||||||
)
|
)
|
||||||
context := []interface{}{
|
context := []interface{}{
|
||||||
"blocks", st.processed, "txs", txs, "mgas", float64(st.usedGas) / 1000000,
|
"blocks", st.processed, "txs", txs, "mgas", float64(st.usedGas) / 1000000,
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ func (t *testService) RunDum(p *p2p.Peer, rw p2p.MsgReadWriter) error {
|
||||||
|
|
||||||
// close the dumReady channel so that other protocols can run
|
// close the dumReady channel so that other protocols can run
|
||||||
close(peer.dumReady)
|
close(peer.dumReady)
|
||||||
|
|
||||||
// block until the peer is dropped
|
// block until the peer is dropped
|
||||||
for {
|
for {
|
||||||
_, err := rw.ReadMsg()
|
_, err := rw.ReadMsg()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue