diff --git a/src/gmc_gui.erl b/src/gmc_gui.erl index f2a7b30..50bbf3e 100644 --- a/src/gmc_gui.erl +++ b/src/gmc_gui.erl @@ -717,8 +717,8 @@ spend2(#poa{id = ID, name = Name}, Nonce, State = #s{frame = Frame, j = J}) -> Style = [{style, ?wxSL_HORIZONTAL bor ?wxSL_LABELS}], Preset = 1_000, - Min = 1, - Max = 1_000_000_000, + Min = hz:min_gas_price(), + Max = Min * 2, GasSl = wxSlider:new(Dialog, ?wxID_ANY, Preset, Min, Max, Style), GasSz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Gas Price")}]), _ = wxStaticBoxSizer:add(GasSz, GasSl, zxw:flags(wide)), @@ -748,7 +748,7 @@ spend2(#poa{id = ID, name = Name}, Nonce, State = #s{frame = Frame, j = J}) -> amount = wxTextCtrl:getValue(AmtTx), gas_price = wxSlider:getValue(GasSl), gas = 20000, - ttl = 175320, + ttl = 1, nonce = Nonce, payload = wxTextCtrl:getValue(DataTx)}, clean_spend(ID, TX);