mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-04 01:54:28 +00:00
Merge branch 'miner' of github.com-obscure:ethereum/eth-go into miner
This commit is contained in:
commit
c0cad0b534
@ -169,6 +169,8 @@ func (bc *BlockChain) ResetTillBlockHash(hash []byte) error {
|
|||||||
bc.LastBlockHash = bc.genesisBlock.Hash()
|
bc.LastBlockHash = bc.genesisBlock.Hash()
|
||||||
bc.LastBlockNumber = 1
|
bc.LastBlockNumber = 1
|
||||||
} else {
|
} else {
|
||||||
|
// TODO: Somehow this doesn't really give the right numbers, double check.
|
||||||
|
// TODO: Change logs into debug lines
|
||||||
returnTo = bc.GetBlock(hash)
|
returnTo = bc.GetBlock(hash)
|
||||||
bc.CurrentBlock = returnTo
|
bc.CurrentBlock = returnTo
|
||||||
bc.LastBlockHash = returnTo.Hash()
|
bc.LastBlockHash = returnTo.Hash()
|
||||||
|
@ -105,6 +105,7 @@ func (miner *Miner) listener() {
|
|||||||
if found == false {
|
if found == false {
|
||||||
log.Println("[MINER] We did not know about this transaction, adding")
|
log.Println("[MINER] We did not know about this transaction, adding")
|
||||||
miner.txs = append(miner.txs, tx)
|
miner.txs = append(miner.txs, tx)
|
||||||
|
miner.block = miner.ethereum.BlockChain().NewBlock(miner.coinbase, miner.txs)
|
||||||
miner.block.SetTransactions(miner.txs)
|
miner.block.SetTransactions(miner.txs)
|
||||||
} else {
|
} else {
|
||||||
log.Println("[MINER] We already had this transaction, ignoring")
|
log.Println("[MINER] We already had this transaction, ignoring")
|
||||||
|
Loading…
Reference in New Issue
Block a user