Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Transaction create command fails with send flag for custom data path #8144

Closed
Tracked by #7226
Incede opened this issue Feb 14, 2023 · 0 comments
Closed
Tracked by #7226

Transaction create command fails with send flag for custom data path #8144

Incede opened this issue Feb 14, 2023 · 0 comments
Assignees
Milestone

Comments

@Incede
Copy link
Contributor

Incede commented Feb 14, 2023

Expected behavior

The command

./bin/run transaction create pos stake 100000000 --params='{"stakes":[{"validatorAddress":"lske5sqed53fdcs4m9et28f2k7u9fk6hno9bauday","amount":720000000000}]}' -k "m/44'/134'/1'" -p "my password" --send --data-path ~/myPath

should be able to submit transaction to node

Actual behavior

The command creates a valid transaction but fails to send it to the node. It tries to incorrectly look for a running application in default data path.

./bin/run transaction create pos stake 100000000 --params='{"stakes":[{"validatorAddress":"lske5sqed53fdcs4m9et28f2k7u9fk6hno9bauday","amount":720000000000}]}' -k "m/44'/134'/1'" -p "my password" --send --data-path ~/myPath
{
  "transaction": "0a03706f7312057374616b6518002080c2d72f2a200904c986211330582ef5e41ed9a2e7d6730bb7bdc59459a0caaaba55be4ec128321f0a1d0a14b2f75b6968f687b495b69e1fec51d06fa8ae9d8d108080c1b5f4293a40ebf4a106eeed8f27f0a5601cb62cd314d575d8f0508d65a9e8229314448f347b3a315bc7016e6a5203288453ae98c55e7f4946458e2f4598e00a000bb5a68407"
}
{
  "transaction": {
    "module": "pos",
    "command": "stake",
    "fee": "100000000",
    "nonce": "0",
    "senderPublicKey": "0904c986211330582ef5e41ed9a2e7d6730bb7bdc59459a0caaaba55be4ec128",
    "signatures": [
      "ebf4a106eeed8f27f0a5601cb62cd314d575d8f0508d65a9e8229314448f347b3a315bc7016e6a5203288453ae98c55e7f4946458e2f4598e00a000bb5a68407"
    ],
    "params": {
      "stakes": [
        {
          "validatorAddress": "lske5sqed53fdcs4m9et28f2k7u9fk6hno9bauday",
          "amount": "720000000000"
        }
      ]
    },
    "id": "acc3d9aaef1a490cf05443f69ebfcc0ef385c9411caaeb73e698a3932ab3f078"
  }
}
    Error: Application at data path /Users/z/.lisk/pos-mainchain is not running.

Steps to reproduce

Under example/pos-mainchain run

./bin/run transaction create pos stake 100000000 --params='{"stakes":[{"validatorAddress":"lske5sqed53fdcs4m9et28f2k7u9fk6hno9bauday","amount":720000000000}]}' -k "m/44'/134'/1'" -p "my password" --send --data-path ~/myPath

Which version(s) does this affect? (Environment, OS, etc...)

development

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

No branches or pull requests

4 participants