Closed igroman787 closed 4 years ago
The message has bounced:1
. This means that some error was thrown and message bounced.
Unfortunately I do not see a way to get exit code, because I see exit_arg:nothing
in previous tx.
@ton-blockchain, is there any way to determine error code that caused internal message bounce?
Well, obviously you can inspect the transaction of the configuration smart contract where your internal message is processed (and bounced). For instance, if the error code (the exception thrown) is 34, then you indicated incorrect validator-idx. Are you sure that 0 is the correct value, and that your validator is the very first in the list in configuration parameter #34?
By inspecting http://test.ton/testnet/transaction?account=Ef9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVbxn<=4838585000003&hash=0FDBEA1A90903513776ECDE2B488292E62A9DD525C2511DFF8D7A053AAF36BB2 we see that this is indeed the case. It would be a good idea to replace throw(34) with returning an explicit error message, but still you have to find out the correct index of your validator.
Oh, there is exit_code
, as I might not have noticed - thanks for showing on an example :)
As I understand it, the code comes from here? https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/config-code.fc#L519
It would be nice to collect somewhere all the error codes related to this topic and their explanation :)
Do I understand correctly that now my validator-idx
is equal to 7
?
I repeated my steps for voting, but now I get an error:
> fift -s config-proposal-vote-signed.fif -i 7 64654898543692093106630260209820256598623953458404398631153796624848083036321 xrQTSEIckGGOeSy74MG2yLictJp4ZJhBkLTMn2F/gzLU2y6/ wa073weUAClha9ivn78TyymQm4W93OSJAaDg7FIpMT/7xCAsc9MzJ3Kma/I6CGILiHSbP7cimVMNu9JL8OM6Ag==
[ 1][t 0][1586359040.049000740][words.cpp:3068] config-proposal-vote-signed.fif:60: abort": Ed25519 signature is invalid
Here is the data I used:
validator-idx 7
proposal-hash 64654898543692093106630260209820256598623953458404398631153796624848083036321
validator-key DBFD350EB5C619C0A9AD1EB8CDBEA1DC64095C56E1E0EA1E2B82B652C1D4578C
var1 566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A1
validator-pubkey xrQTSEIckGGOeSy74MG2yLictJp4ZJhBkLTMn2F/gzLU2y6/
validator-signature wa073weUAClha9ivn78TyymQm4W93OSJAaDg7FIpMT/7xCAsc9MzJ3Kma/I6CGILiHSbP7cimVMNu9JL8OM6Ag==
I apologize to you for my stupidity. I realized my mistake - the problem was really in the value of validator-idx
, which now equals 7
for me.
Thank you very much for your time!
And it would be nice to collect somewhere all exit_code
related to this topic and their explanation :)
Good afternoon. I'm trying to repeat the experience with this instruction, namely 4 point: http://test.ton/ConfigParam-HOWTO.txt
I ran into a problem - my vote does not count. The configurator returns funds with a message:
FFFFFFFF566F74655E8C432AD66128A19165251B54D88EA9C9A7966F135100069165CC9A
. Transaction Link: http://test.ton/testnet/transaction?account=Ef_XOpw1giZMDzhJohdIvE4LA2hlE9O1RUxqbQqsNeGG5WlW<=4838585000005&hash=59F2CC2720645F42323D4A23EE7F1C123FB708F34395676190C0FE1C81EC5D6BWhat does this message mean? Where am I wrong? I recheck all my actions:
fift -s config-proposal-vote-req.fif -i <validator-idx> <proposal-hash>
:Creating a request to vote for configuration proposal 0x8ef1603180dad5b599fa854806991a7aa9f280dbdb81d67ce1bedff9d66128a1 on behalf of validator with index 0 566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A1 Vm90RQAAjvFgMYDa1bWZ-oVIBpkaeqnygNvbgdZ84b7f-dZhKKE= Saved to file validator-to-sign.req
got signature kWUlG1TYjqnJp5ZvE1EABpFlzJp7v+OhcUixivKhDv+Q+nOnJMWmLhMvZC0UrSvw3U2DtnSH3znZJ9OJDCKWBQ==
Creating the body of an internal message to be sent to the configuration smart contract containing a signed request to vote for configuration proposal 0x8ef1603180dad5b599fa854806991a7aa9f280dbdb81d67ce1bedff9d66128a1 on behalf of validator with index 0 5A269A02087FDF25E39D64E453F5363FAC8384990BC62BFF20521810924AFBCE String to sign is 566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A1 Provided a valid Ed25519 signature 9165251B54D88EA9C9A7966F135100069165CC9A7BBFE3A17148B18AF2A10EFF90FA73A724C5A62E132F642D14AD2BF0DD4D83B67487DF39D927D3890C229605 with validator public key 5A269A02087FDF25E39D64E453F5363FAC8384990BC62BFF20521810924AFBCE
Internal message body is x{566F74655E8C781DD66128A19165251B54D88EA9C9A7966F135100069165CC9A7BBFE3A17148B18AF2A10EFF90FA73A724C5A62E132F642D14AD2BF0DD4D83B67487DF39D927D3890C229605566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A1}
Saved to file vote-msg-body.boc
Source wallet address = -1:d73a9c3582264c0f3849a21748bc4e0b03686513d3b5454c6a6d0aac35e186e5 kf_XOpw1giZMDzhJohdIvE4LA2hlE9O1RUxqbQqsNeGG5dLc Loading private key from file validator_wallet_001.pk Transferring GR$1.5 to account kf9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQft = -1:5555555555555555555555555555555555555555555555555555555555555555 seqno=0x108 bounce=-1 Body of transfer message is x{566F74655E8C781DD66128A19165251B54D88EA9C9A7966F135100069165CC9A7BBFE3A17148B18AF2A10EFF90FA73A724C5A62E132F642D14AD2BF0DD4D83B67487DF39D927D3890C229605566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A1}
StateInit is x{4_}
signing message: x{0000010803} x{627FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2CB41780000000000000000000000000001} x{566F74655E8C781DD66128A19165251B54D88EA9C9A7966F135100069165CC9A7BBFE3A17148B18AF2A10EFF90FA73A724C5A62E132F642D14AD2BF0DD4D83B67487DF39D927D3890C229605566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A1}
resulting external message: x{89FFAE75386B044C981E7093442E91789C1606D0CA27A76A8A98D4DA15586BC30DCA06C725BC53353C0568BA99F5CC7A8186403E0197DF392D0008D554FD0ED161429DD0D9DE95EF535482BA140EEC83436C10F7108C2C555CBFB94C2DA29B5D1AD068000008401C_} x{627FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2CB41780000000000000000000000000001} x{566F74655E8C781DD66128A19165251B54D88EA9C9A7966F135100069165CC9A7BBFE3A17148B18AF2A10EFF90FA73A724C5A62E132F642D14AD2BF0DD4D83B67487DF39D927D3890C229605566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A1}
B5EE9C72410203010001160001CF89FFAE75386B044C981E7093442E91789C1606D0CA27A76A8A98D4DA15586BC30DCA06C725BC53353C0568BA99F5CC7A8186403E0197DF392D0008D554FD0ED161429DD0D9DE95EF535482BA140EEC83436C10F7108C2C555CBFB94C2DA29B5D1AD068000008401C010168627FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2CB417800000000000000000000000000010200E4566F74655E8C781DD66128A19165251B54D88EA9C9A7966F135100069165CC9A7BBFE3A17148B18AF2A10EFF90FA73A724C5A62E132F642D14AD2BF0DD4D83B67487DF39D927D3890C229605566F744500008EF1603180DAD5B599FA854806991A7AA9F280DBDB81D67CE1BEDFF9D66128A18F0E704B (Saved to file wallet-query.boc)
[ 1][t 2][1586265929.192410946][lite-client.cpp:1076][!testnode] sending query from file wallet-query.boc [ 3][t 2][1586265929.252462626][lite-client.cpp:1086][!query] external message status is 1
{ "@type" : "engine.validator.config", "out_port" : 3278, "addrs" : [ { "@type" : "engine.addr", "ip" : ****, "port" : , "categories" : [ 0, 1, 2, 3 ], "priority_categories" : [ ] } ], "adnl" : [ { "@type" : "engine.adnl", "id" : "P3/szCIHyIaUb7vmDTlpER/9e2qTgK3N533RWPjnDVQ=", "category" : 1 }, { "@type" : "engine.adnl", "id" : "e8MQxacPNW8V4TMEATfXARPsjRODETb7IGxJca4yA54=", "category" : 0 }, { "@type" : "engine.adnl", "id" : "s9NjdBfOiBFQcYC1ETwo4e0pHBZR9/ntV72ljnuTpkE=", "category" : 0 } ], "dht" : [ { "@type" : "engine.dht", "id" : "e8MQxacPNW8V4TMEATfXARPsjRODETb7IGxJca4yA54=" } ], "validators" : [ { "@type" : "engine.validator", "id" : "sW2T9faWb0dddSK1DGK/HrtTpNZEvObcj7se6nOSTCA=", "temp_keys" : [ { "@type" : "engine.validatorTempKey", "key" : "sW2T9faWb0dddSK1DGK/HrtTpNZEvObcj7se6nOSTCA=", "expire_at" : 1586272131 } ], "adnl_addrs" : [ { "@type" : "engine.validatorAdnlAddress", "id" : "s9NjdBfOiBFQcYC1ETwo4e0pHBZR9/ntV72ljnuTpkE=", "expire_at" : 1586272131 } ], "election_date" : 1586206295, "expire_at" : 1586272131 }, { "@type" : "engine.validator", "id" : "zfHiEqeXgcnKEzyrAvPn9sH0mGUkQulYEqJNJiI41vw=", "temp_keys" : [ { "@type" : "engine.validatorTempKey", "key" : "zfHiEqeXgcnKEzyrAvPn9sH0mGUkQulYEqJNJiI41vw=", "expire_at" : 1586337667 } ], "adnl_addrs" : [ { "@type" : "engine.validatorAdnlAddress", "id" : "s9NjdBfOiBFQcYC1ETwo4e0pHBZR9/ntV72ljnuTpkE=", "expire_at" : 1586337667 } ], "election_date" : 1586271831, "expire_at" : 1586337667 } ], "fullnode" : "P3/szCIHyIaUb7vmDTlpER/9e2qTgK3N533RWPjnDVQ=", "fullnodeslaves" : [ ], "fullnodemasters" : [ ], "liteservers" : [ ], "control" : [ { "@type" : "engine.controlInterface", "id" : "lOM3vGuV1aVpcWGrLkj2oJAUXxBxjAfniWxOkgPwSM8=", "port" : **, "allowed" : [ { "@type" : "engine.controlProcess", "id" : "CJ1w+Lb06uP61IQdys81uYr5w+MV6hBUItflcZzPQBQ=", "permissions" : 15 } ] } ], "gc" : { "@type" : "engine.gc", "ids" : [ ] } }