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

fix txn_test_gen_plugin for stress test(DAWN-562)#1880

Merged
spoonincode merged 2 commits intoEOSIO:masterfrom
taokayan:txn_test_plugin
Mar 29, 2018
Merged

fix txn_test_gen_plugin for stress test(DAWN-562)#1880
spoonincode merged 2 commits intoEOSIO:masterfrom
taokayan:txn_test_plugin

Conversation

@taokayan
Copy link
Contributor

No description provided.

@pmesnier
Copy link
Contributor

Can you add a brief description of what this change does and how it does it?

signed_transaction trx;
trx.actions.push_back(act_a_to_b);
trx.actions.emplace_back(action({}, config::system_account_name, "nonce", fc::raw::pack(nonce)));
//trx.context_free_actions.emplace_back(action({}, config::system_account_name, "nonce", fc::raw::pack(nonce)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Just delete the commented out code.

signed_transaction trx;
trx.actions.push_back(act_b_to_a);
trx.actions.emplace_back(action({}, config::system_account_name, "nonce", fc::raw::pack(nonce)));
//trx.context_free_actions.emplace_back(action({}, config::system_account_name, "nonce", fc::raw::pack(nonce)));
Copy link
Contributor

Choose a reason for hiding this comment

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

And delete this commented out code as well

Copy link
Contributor

@pmesnier pmesnier left a comment

Choose a reason for hiding this comment

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

Please add a bit of description of why it was necessary to replacet he nonce action with a local salter. Also delete the commented code. le git manage revision history. :-)

@taokayan
Copy link
Contributor Author

the reason of removing the nonce action is that: the nonce action is now considered as context_free_action and it is no longer able to make the transaction unique.
so my change is to make the "memo" field unique instead.

…880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880fix 1880
@taokayan
Copy link
Contributor Author

hi, another change is committed.

@spoonincode spoonincode merged commit d6c3633 into EOSIO:master Mar 29, 2018
@gleehokie gleehokie added this to the RC1 milestone Apr 7, 2018
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.

4 participants