eos icon indicating copy to clipboard operation
eos copied to clipboard

extend eosc to read from a source file

Open pmesnier opened this issue 9 years ago • 2 comments

In order to test the net plug in, I want to generate a lot of transactions. I first tried repeatedly calling eosc with a single command line such as: "eosc transfer eos inita 10" to to generate transactions, but for a given block only, only the first instance worked. Subsequent instances triggered uniqueness verification failures. So my goal here is to allow eosc to read a "script" from a file, each line treated as a command.

This will be used in a new p2p test "pump" which generates a multi-node network (all on localhost for the time being) and sends as many transactions as it can into the network.

However, given how transaction identifiers are created, a legitimate second occurrence of "eosc transfer eos inita 10" really does generate the same ID as the earlier instance. This will doom my script to failure unless I add the ability to synthesize transaction details so that no transaction is perceived to be a duplicate. for example, thread ID + a thread-specific counter of transactions created on that thread.

pmesnier avatar Aug 02 '17 05:08 pmesnier

a legitimate second occurrence of "eosc transfer eos inita 10" really does generate the same ID as the earlier instance

I think the way we've dealt with this historically is to tweak the expiration info. It's a bit kludgy, but it works.

nathanielhourt avatar Aug 03 '17 15:08 nathanielhourt

pr for this feature was merged a week ago.

pmesnier avatar Aug 16 '17 08:08 pmesnier