Mine without txs

pull/150/head
obscuren 10 years ago
parent 84690bfbbe
commit 60a8c9527c
  1. 7
      ethminer/miner.go

@ -3,7 +3,6 @@ package ethminer
import (
"bytes"
"sort"
"time"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethlog"
@ -136,12 +135,6 @@ func (miner *Miner) listener() {
}
}
default:
// This hack is only temporarily
if len(miner.txs) == 0 {
time.Sleep(2 * time.Second)
continue
}
miner.mineNewBlock()
}
}

Loading…
Cancel
Save