|
28 | 28 | mungers=[default_root_munger],
|
29 | 29 | )
|
30 | 30 |
|
31 |
| -make_dag = DeprecatedMethod(_make_dag, "make_dag", "deprecated") |
| 31 | +make_dag = DeprecatedMethod( |
| 32 | + _make_dag, "make_dag", msg="All mining methods have been deprecated" |
| 33 | +) |
32 | 34 |
|
33 | 35 | _set_extra: Method[Callable[[str], bool]] = Method(
|
34 | 36 | RPC.miner_setExtra,
|
35 | 37 | mungers=[default_root_munger],
|
36 | 38 | )
|
37 | 39 |
|
38 |
| -set_extra = DeprecatedMethod(_set_extra, "set_extra", "deprecated") |
| 40 | +set_extra = DeprecatedMethod( |
| 41 | + _set_extra, "set_extra", msg="All mining methods have been deprecated" |
| 42 | +) |
39 | 43 |
|
40 | 44 | _set_etherbase: Method[Callable[[ChecksumAddress], bool]] = Method(
|
41 | 45 | RPC.miner_setEtherbase,
|
42 | 46 | mungers=[default_root_munger],
|
43 | 47 | )
|
44 | 48 |
|
45 |
| -set_etherbase = DeprecatedMethod(_set_etherbase, "set_etherbase", "deprecated") |
| 49 | +set_etherbase = DeprecatedMethod( |
| 50 | + _set_etherbase, "set_etherbase", msg="All mining methods have been deprecated" |
| 51 | +) |
46 | 52 |
|
47 | 53 | _set_gas_price: Method[Callable[[Wei], bool]] = Method(
|
48 | 54 | RPC.miner_setGasPrice,
|
49 | 55 | mungers=[default_root_munger],
|
50 | 56 | )
|
51 | 57 |
|
52 |
| -set_gas_price = DeprecatedMethod(_set_gas_price, "set_gas_price", "deprecated") |
| 58 | +set_gas_price = DeprecatedMethod( |
| 59 | + _set_gas_price, "set_gas_price", msg="All mining methods have been deprecated" |
| 60 | +) |
53 | 61 |
|
54 | 62 | _start: Method[Callable[[int], bool]] = Method(
|
55 | 63 | RPC.miner_start,
|
56 | 64 | mungers=[default_root_munger],
|
57 | 65 | )
|
58 | 66 |
|
59 |
| -start = DeprecatedMethod(_start, "start", "deprecated") |
| 67 | +start = DeprecatedMethod(_start, "start", msg="All mining methods have been deprecated") |
60 | 68 |
|
61 | 69 | _stop: Method[Callable[[], bool]] = Method(
|
62 | 70 | RPC.miner_stop,
|
63 | 71 | is_property=True,
|
64 | 72 | )
|
65 | 73 |
|
66 |
| -stop = DeprecatedMethod(_stop, "stop", "deprecated") |
| 74 | +stop = DeprecatedMethod(_stop, "stop", msg="All mining methods have been deprecated") |
67 | 75 |
|
68 | 76 | _start_auto_dag: Method[Callable[[], bool]] = Method(
|
69 | 77 | RPC.miner_startAutoDag,
|
70 | 78 | is_property=True,
|
71 | 79 | )
|
72 | 80 |
|
73 |
| -start_auto_dag = DeprecatedMethod(_start_auto_dag, "start_auto_dag", "deprecated") |
| 81 | +start_auto_dag = DeprecatedMethod( |
| 82 | + _start_auto_dag, "start_auto_dag", msg="All mining methods have been deprecated" |
| 83 | +) |
74 | 84 |
|
75 | 85 | _stop_auto_dag: Method[Callable[[], bool]] = Method(
|
76 | 86 | RPC.miner_stopAutoDag,
|
77 | 87 | is_property=True,
|
78 | 88 | )
|
79 | 89 |
|
80 |
| -stop_auto_dag = DeprecatedMethod(_stop_auto_dag, "stop_auto_dag", "deprecated") |
| 90 | +stop_auto_dag = DeprecatedMethod( |
| 91 | + _stop_auto_dag, "stop_auto_dag", msg="All mining methods have been deprecated" |
| 92 | +) |
0 commit comments