Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.

Test: Invalid & incomplete regression#1809

Open
kwek20 wants to merge 23 commits into
iotaledger-archive:devfrom
kwek20:invalid-incomplete-regression
Open

Test: Invalid & incomplete regression#1809
kwek20 wants to merge 23 commits into
iotaledger-archive:devfrom
kwek20:invalid-incomplete-regression

Conversation

@kwek20

@kwek20 kwek20 commented Mar 25, 2020

Copy link
Copy Markdown
Contributor

Description

Part of #1590, but these were disabled as they dont work in pre-whiteflag.
As requested, moved to a separate PR

bundle1.send_unspent_inputs_to(Address(addressFrom))
bundle1.finalize()
bundle1.sign_inputs(KeyGenerator(seedFrom))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy Issue found: Trailing whitespace

bundle = transactions.attach_store_and_broadcast(api, argument_list)
transaction_trytes = bundle.get('trytes')
transaction_hash = Transaction.from_tryte_string(transaction_trytes[0])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy Issue found: Trailing whitespace

@@ -0,0 +1,103 @@
from iota.crypto.signing import KeyGenerator

from iota import Iota, ProposedTransaction, Address, Bundle, TransactionHash, \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


argument_list = {'trunk_transaction': trunk2, 'branch_transaction': branch2,
'trytes': bundles[1].as_tryte_strings(), 'min_weight_magnitude': 14}
secondDoubleSpend = Transaction.from_tryte_string( transactions.attach_store_and_broadcast(api, argument_list).get('trytes')[0] )

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants