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

Test: Invalid & incomplete regression #1809

Open
wants to merge 23 commits into
base: dev
Choose a base branch
from

Conversation

kwek20
Copy link
Contributor

@kwek20 kwek20 commented Mar 25, 2020

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
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
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
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
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