-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure_LockHash_Unknown_Hash on some nodes #776
Comments
transaction hash lock needs to be known/present BEFORE you create aggregate bonded transaction. ignore the above, maybe I misunderstood something, can you write exactly what transactionS you have made and in what order? |
Thank you for the response. I've created a simple transaction. https://gist.github.com/keiyow/638204e82d4b2de8e7c6366892e7a8d4 After creating the hash lock transaction, I checked on all the nodes and found the error. txhash=[[replace txhash]]; for i in `curl -Ss http://beacon-01.us-west-2.testnet.symboldev.network:4001/nodes | jq -r ".[]|select(.roles == 2 or .roles == 3 or .roles == 6 or .roles == 7)|.url = \"http://\" + .host + \":3000\"|.url"`; do echo -n "$i : "; curl $i/transactionStatus/${txhash} -sS -m 10 | jq -r ".code" ; done |
I was also able to reproduce it relatively easily.
http://18.195.160.73:3000/lock/hash/9AFAF027A3CF9FC4205A04487930D15729AEAF3106201D9C8089A78591257D68
I think 18.195.160.73 is tx = nem.TransferTransaction.create(
nem.Deadline.create(epochAdjustment),
alice.address,
[],
nem.PlainMessage.create('test'),
networkType
);
feeTx = nem.TransferTransaction.create(
nem.Deadline.create(epochAdjustment),
bob.address,
[networkCurrency.createRelative(1)],
nem.EmptyMessage,
networkType
);
aggregateTx = nem.AggregateTransaction.createBonded(
nem.Deadline.create(epochAdjustment),
[
feeTx.toAggregate(alice.publicAccount),
tx.toAggregate(bob.publicAccount),
],
networkType,[],
).setMaxFeeForAggregate(500, 1);
signedAggregateTx = alice.sign(aggregateTx, generationHash);
hashLockTx = nem.HashLockTransaction.create(
nem.Deadline.create(epochAdjustment),
networkCurrency.createRelative(10),
nem.UInt64.fromUint(480),
signedAggregateTx,
networkType
).setMaxFee(600);
signedLockTx = alice.sign(hashLockTx, generationHash);
listener.open().then(() => {
transactionService.announceHashLockAggregateBonded(
signedLockTx,
signedAggregateTx,
listener
).subscribe(aggTx => console.log(aggTx))
}); |
Can you confirm if either of the transactions made it into the chain? |
After talking with @rg911, we think this is an SDK issue and will move there. |
I announced an AggregateBonded Transaction with two simple Transfers and a HashLock Transaction.
When I went over all the published nodes, I found a few nodes with transactionStatus outputting an error
Failure_LockHash_Unknown_Hash
.I tested out the same thing several times, and nodes that generated this error were not the same nodes every time.
And when I look through the error on one node, I found the lockhash information but no partial information there.
The text was updated successfully, but these errors were encountered: