Allow extra to be set for mined blocks

This commit is contained in:
obscuren
2015-01-06 00:19:07 +01:00
parent cc7f8f58e8
commit 47e6b2cef8
3 changed files with 25 additions and 0 deletions

View File

@@ -279,6 +279,10 @@ func (self *UiLib) SetGasPrice(price string) {
self.miner.MinAcceptedGasPrice = ethutil.Big(price)
}
func (self *UiLib) SetExtra(extra string) {
self.miner.Extra = extra
}
func (self *UiLib) ToggleMining() bool {
if !self.miner.Mining() {
self.miner.Start()