input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.77k stars 630 forks source link

ctCondition : CPtxWontApply : Transaction Always Pending and then later on it gets canceled ? #2471

Open tanzeelrana opened 6 years ago

tanzeelrana commented 6 years ago

Why is my transaction not getting any confirmations ? What am i doing wrong in my transactions ?

Request URL:

https://localhost:8090/api/txs/payments/Ae2tdPwUPEZHkSE2BmKwiQP7cG1FmCXtHE275kv7yENuAvzwVf92Gpu7w1D@2147483648/DdzFFzCqrhspgVMkDvrJSfRJbFrFa31TDkCjyt5RqibCcJLh1XiTfhKuKWrvFkrgpSvHyLfpons5BHdtqthr3aRBoE3a8V43uiskTyFc/1000000?passphrase=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Request Method : POST

The response I get is : (stringified)

"{"id":"15fdb16e00901f83000cc2e9935bce03bfbcacc6b50ceb4468eface193cc7de9","title":"Ada sent","description":"","numberOfConfirmations":0,"addresses":{"from":["DdzFFzCqrhtAw4b1FLuj2BeWTRq86vjtXFY15t3P8mcYjMZ77sEkeY2secqeB4aPByAqKhDYQ7nVce6zw3LP6ccXFkqAFv8EJQaCWjcj"],"to":["DdzFFzCqrhssoUePZwgvETvWByNVDtCjQfc5GeRRXZ3XpdneQoUcw5az31KatwUp5YLiVppTCX5yRsAQS3PKUnrsAjyaFDfVFdW3jij8","DdzFFzCqrhspgVMkDvrJSfRJbFrFa31TDkCjyt5RqibCcJLh1XiTfhKuKWrvFkrgpSvHyLfpons5BHdtqthr3aRBoE3a8V43uiskTyFc"]},"type":"expend","amount":"-1.170894","date":"2018-02-07T05:18:32.177Z","state":"pending"}"

JSON Pretty :

screen shot 2018-02-07 at 1 05 17 am

Can someone please tell me what am I doing wrong ? I tried a transaction yesterday and waiting but eventually it says CPtxWontApply for the ctCondition.

screen shot 2018-02-07 at 1 07 00 am

gromakovsky commented 6 years ago

Submit logs please, we can't help without logs.

tanzeelrana commented 6 years ago

is there a way to collect traces ? or do I need to collect them manually ?

I have the pub folder but it shows me a secret key file in it should i attach the link to the files here ? Can u share me ur email so I can sent it to u in email ? not sure what that secret key is about. I'll share the other files here in the meanwhile

tanzeelrana commented 6 years ago

node.pub.0: https://drive.google.com/open?id=11djo584QICTd08GDqrh2itFUJIM6llWC node.pub: https://drive.google.com/open?id=1hFVG8ez0j0c1Nv36r9hsz3pref2rlQAJ node.0: https://drive.google.com/open?id=1FO0AUqsNjf7G4KR3k7sS9gtcKJZJKPEj node: https://drive.google.com/open?id=1RS0KJrQkkhUl1U4rw7S8VKt86BQIX5wH

I made a transaction again so it will be in logs too. The previous transactions were done yesterday so I am not sure if would still be in the log files as its only limited to 100 MB

Response Transaction that I get:

{ "ctId": "5fabffb0815b6b30ae9b177bfcca3c184d12ae298ae75e083ccc9d77198587b8", "ctAmount": { "getCCoin": "1190905" }, "ctConfirmations": 0, "ctMeta": { "ctmDate": 1518050709.979146 }, "ctInputs": [ [ "DdzFFzCqrhtCpAkGhkfaVq9GZusWohPN4kt6ha8Asw55a5io3m3nfSyuKRxuLRfKa6sKf6wQD83NuHBSneBA8NKWv1gQcwcYpLi8u8gP", { "getCCoin": "204539445" } ] ], "ctOutputs": [ [ "DdzFFzCqrhsqvzcduv62ymw1rD2nXP9T4x2NghsPb5wCwRvSEoxHyxwjGy7xitZsnFFR7aynMGgLN71TYwpC93jY2rqCdRDoGPsqkWUE", { "getCCoin": "203348540" } ], [ "DdzFFzCqrht7ZvwKs8HEJbkWW2F5VCFKvhip2q8np9R7g6LJNqRKyL9CjWWvwqpdatE1scZTAw7BX5YudrDGq3Yt5F43YGNWberqZVM2", { "getCCoin": "1020011" } ] ], "ctIsLocal": false, "ctIsOutgoing": true, "ctCondition": "CPtxApplying" }

tanzeelrana commented 6 years ago

I tried another transaction to view the logs live in the back and I see the post request:

[node.wallet.servant:INFO:ThreadId 1066] [2018-02-08 03:21:19.43 UTC] POST :> api :> txs :> payments :> 'passphrase' field: :> 'from' field: Ae2tdPwUPEZHkSE2BmKwiQP7cG1FmCXtHE275kv7yENuAvzwVf92Gpu7w1D@2147483648 :> 'to' field: DdzFFzCqrht7ZvwKs8HEJbkWW2F5VCFKvhip2q8np9R7g6LJNqRKyL9CjWWvwqpdatE1scZTAw7BX5YudrDGq3Yt5F43YGNWberqZVM2 :> 'amount' field: 1000005 coin(s) :> request body: securely Status: OK 6.000758191s > { id=2a86a362cc43e2d2b28455d2ada5658fd1e8d6b2074af0287be31f329256369e amount=1170899 confirms=0 meta={ date=1518060074.047505s } inputs=DdzFFzCqrhsmAuBzqK162VwiQZvjecrNpioKa6DFWwQXGAMR4HYnp7MikyJSHowsAKgXGM923vttn5BrAfEJEsXrJ7HQzHURemN4zbFo - 210393743 outputs=DdzFFzCqrhtAd3pPAWVmGafUh5Tf5LajWTN8C4ZR9G9bUmtTxogPGsm7uAvjUsHgL85KcXDnNxrK71Akzbuzmy7PrspGwV6vJLyMLoJ1 - 209222844, DdzFFzCqrht7ZvwKs8HEJbkWW2F5VCFKvhip2q8np9R7g6LJNqRKyL9CjWWvwqpdatE1scZTAw7BX5YudrDGq3Yt5F43YGNWberqZVM2 - 1000005 local=False outgoing=True condition=CPtxApplying } [node.server.block:DEBUG:ThreadId 1086] [2018-02-08 03:21:19.57 UTC] handleUnsolicitedHeader: single header was propagated, processing: MainBlockHeader: hash: 7376b436c2c8ca7a8de9d66354389f7a727aaa97d3eb4c5883031ad8888e3c13 previous block: e4f027cb33bad8c56e62e9e1229256b36c718e556b15e0ee6e6af11c82642769 slot: 9649th slot of 27th epoch difficulty: 592775 leader: pub:d2965c86 signature: BlockPSignatureHeavy: Proxy signature { psk = ProxySk { w = #0, iPk = pub:d2965c86, dPk = pub:9180d818 } } block: v0.1.0 software: cardano-sl:0

Screenshot :

screen shot 2018-02-07 at 10 24 33 pm

tanzeelrana commented 6 years ago

@gromakovsky any news ? :)

Martoon-00 commented 6 years ago

Your node seem to have some kind of networking error while submitting transaction. We're investigating this. @tanzeelrana could you prompt git commit you're on?

tanzeelrana commented 6 years ago

I make one rest api call to the node from my own web based client. Do i need to keep polling for that wallet from where the transaction was made ?

I don't see any confirmations.

tanzeelrana commented 6 years ago

root@pace:~/cardano-sl# git log -1 commit 40ad807a27d85c6066fb6f4259a6bcdb42a7ae8f Merge: 7a07cf8 3b178a5 Author: Pastafarianist Pastafarianist@users.noreply.github.com Date: Sat Feb 3 22:24:27 2018 +0200

Merge pull request #2444 from input-output-hk/thatguy/csl2251-remove-ether

[CSL-2251] Clean up `ether` imports
Martoon-00 commented 6 years ago

@tanzeelrana Could you try using master branch, or release/1.1.0 for upcoming release? Main develop branch is not stable one. If problem remains, please inform us, we will investigate further.

avieth commented 6 years ago

Fixed by https://github.com/input-output-hk/cardano-sl/commit/fb89d7a9243dd3b1b40c815f65c58e85566aab9c (included in develop at time of writing)?

darxtrix commented 6 years ago

@tanzeelrana I see you are sending to account DdzFFzCqrhspgVMkDvrJSfRJbFrFa31TDkCjyt5RqibCcJLh1XiTfhKuKWrvFkrgpSvHyLfpons5BHdtqthr3aRBoE3a8V43uiskTyFc then why in response its showing another account also, DdzFFzCqrhssoUePZwgvETvWByNVDtCjQfc5GeRRXZ3XpdneQoUcw5az31KatwUp5YLiVppTCX5yRsAQS3PKUnrsAjyaFDfVFdW3jij8

Is this the address of the account itself ?

Do you know how its possible to send to many accounts at the same time instead of one account ? More details on this here https://github.com/input-output-hk/cardano-sl/issues/2668