Skip to content

Commit a1db263

Browse files
authored
Merge pull request #228 from instagibbs/pytutcleanup
python assets tutorial clarifications and cleanup
2 parents cf9efd8 + e624ab0 commit a1db263

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contrib/assets_tutorial/assets_tutorial.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ def sync_all(e1, e2):
235235
assetentry = "-assetdir="+asset+":namedasset"
236236
# Wallet labels have no consensus meaning, only local node/wallet meaning
237237

238-
# Having issues with mempool sync?
239238
sync_all(e1, e2)
240239
e1.stop()
241240
time.sleep(5)
@@ -247,7 +246,7 @@ def sync_all(e1, e2):
247246
e1.getwalletinfo()
248247

249248
# To send issued assets, add an additional argument to sendtoaddress using the hex or label
250-
e1.sendtoaddress(e2.getnewaddress(), 1, "", "", False, issue["asset"])#"namedasset")
249+
e1.sendtoaddress(e2.getnewaddress(), 1, "", "", False, "namedasset")
251250
# Reissuance tokens can also be sent like any other asset
252251
e1.sendtoaddress(e2.getnewaddress(), 1, "", "", False, issue["token"])
253252
sync_all(e1, e2)
@@ -256,7 +255,7 @@ def sync_all(e1, e2):
256255
e2.generate(1)
257256
sync_all(e1, e2)
258257

259-
# e2 doesn't know about the issuance for the transaction sending him the new asset
258+
# e2 maybe doesn't know about the issuance for the transaction sending him the new asset
260259
e2.listissuances()
261260

262261
# let's import an associated address(so the wallet captures issuance transaction) and rescan

0 commit comments

Comments
 (0)