|
|
|
@ -46,6 +46,7 @@ Rectangle { |
|
|
|
|
text: "Start" |
|
|
|
|
onClicked: { |
|
|
|
|
eth.setGasPrice(minGasPrice.text || "10000000000000"); |
|
|
|
|
eth.setExtra(blockExtra.text) |
|
|
|
|
if (eth.toggleMining()) { |
|
|
|
|
this.text = "Stop"; |
|
|
|
|
} else { |
|
|
|
@ -55,6 +56,7 @@ Rectangle { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
id: minGasPriceRect |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.topMargin: 2 |
|
|
|
|
width: 200 |
|
|
|
@ -65,6 +67,23 @@ Rectangle { |
|
|
|
|
validator: RegExpValidator { regExp: /\d*/ } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
width: 300 |
|
|
|
|
anchors { |
|
|
|
|
left: minGasPriceRect.right |
|
|
|
|
leftMargin: 5 |
|
|
|
|
top: parent.top |
|
|
|
|
topMargin: 2 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TextField { |
|
|
|
|
id: blockExtra |
|
|
|
|
placeholderText: "Extra" |
|
|
|
|
width: parent.width |
|
|
|
|
maximumLength: 1024 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|