Skip to content
Snippets Groups Projects
Commit 83f361ec authored by dpuzyrkov's avatar dpuzyrkov
Browse files

...

parent dde84f6f
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -3,7 +3,7 @@ from CellFrame.Network import Net
from CellFrame.Common import DatumEmission
from DAP import Crypto
from DAP.Crypto import Cert, Sign
from CellFrame.Chain import Mempool
from CellFrame.Chain import Mempool, Wallet
from CellFrame.Consensus import DAG,Block
from CellFrame.Common import Datum, DatumTx, TxOut, TxIn, TxToken, TxSig, TxOutCondSubtypeSrvStakeLock, TxInCond
from DAP.Crypto import HashFast
......@@ -195,9 +195,15 @@ class CellframeNetwork:
else:
return None
def create_base_transaction(self, emission, certs, fee):
return Mempool.baseTxCreate(self.main, emission.datum.hash, self.zerochain, emission.datum.value, emission.datum.ticker,
emission.datum.addr, fee, certs)
def create_base_transaction(self, emission, certs, fee, native_tw):
if native_tw:
w = Wallet.openFile(native_tw)
return Mempool.baseTxCreate(self.main, emission.datum.hash, self.zerochain, emission.datum.value, emission.datum.ticker,
emission.datum.addr, fee, w)
else:
return Mempool.baseTxCreate(self.main, emission.datum.hash, self.zerochain, emission.datum.value, emission.datum.ticker,
emission.datum.addr, fee, certs)
def get_emission_by_tsd(self, tsd_dict):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment