remove some unused code
This commit is contained in:
parent
50fc415282
commit
f1888658d0
3 changed files with 2 additions and 14 deletions
|
|
@ -65,10 +65,7 @@ class New(Base,TxBase.New):
|
|||
|
||||
# given tx size, rel fee and units, return absolute fee
|
||||
def fee_rel2abs(self, tx_size, units, amt_in_units, unit):
|
||||
if tx_size:
|
||||
return self.proto.coin_amt(amt_in_units * tx_size, from_unit=units[unit])
|
||||
else:
|
||||
return None
|
||||
return self.proto.coin_amt(amt_in_units * tx_size, from_unit=units[unit])
|
||||
|
||||
# given network fee estimate in BTC/kB, return absolute fee using estimated tx size
|
||||
def fee_est2abs(self,fee_per_kb,fe_type=None):
|
||||
|
|
|
|||
|
|
@ -154,15 +154,6 @@ class XMRWalletAddrSpec(HiliteStr,InitErrors,MMGenObject):
|
|||
except Exception as e:
|
||||
return cls.init_fail(e,me)
|
||||
|
||||
def is_xmr_tx_file(cfg,fn):
|
||||
try:
|
||||
MoneroMMGenTX.Completed(cfg,fn)
|
||||
return True
|
||||
except Exception as e:
|
||||
if not 'MoneroMMGenTXFileParseError' in type(e).__name__:
|
||||
ymsg(f'\n{type(e).__name__}: {e}')
|
||||
return False
|
||||
|
||||
class MoneroMMGenFile:
|
||||
|
||||
silent_load = False
|
||||
|
|
|
|||
|
|
@ -1124,7 +1124,7 @@ class CmdTestRegtest(CmdTestBase,CmdTestShared):
|
|||
|
||||
def alice_send_estimatefee(self):
|
||||
outputs_cl = self._create_tx_outputs('bob',(('L',1,''),)) # bob_sid:L:1
|
||||
return self.user_txdo('alice',None,outputs_cl,'1') # fee=None
|
||||
return self.user_txdo('alice', None, outputs_cl, '1', extra_args=['--verbose']) # fee=None
|
||||
|
||||
def user_txbump(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue