-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Private Transaction from Private Contract #78
Comments
Hi, please can you post the command/code you're using to send the addCustomer private transaction to node6? |
Below is the code that i am executing from Node 6 geth console. var address = "0x6a8331ace0824d4c7872f6d2618b45a42f887798"; |
Could you attach/gist the constellation log for the sending node? |
No errors in the constellation log of any of the nodes. Below is the constellation log of Node 6 from where the transactions are executed root@78c007ffd0b7:/# less qdata/logs/constellation6.log |
I am not able to reproduce the issue using the 7nodes setup. Can you please also send through the code for the initial contract deployment tx? |
var newC = web3.eth.contract(contract.interface);
I am able to successfully deploy the SimpleCustomerFactory contract through this code. I have attached the contract JSON also here. var address = "0x67611335713bbfdc6eadfc40878958e485ddc077"; eth.getTransactionReceipt("0x6519ef7c0772dfea279fe7ffab6bf594bc39362bea492d77dca7c22aa1574b48") output { eth.getTransaction("0x6519ef7c0772dfea279fe7ffab6bf594bc39362bea492d77dca7c22aa1574b48"} |
Hi @paliwalg, I am able to create the contract both as a public contract and a private contract using the standard 7nodes setup. In the case of the private contract, I made it privateFor node1 and node 7. Here's what I get: Note that
When I instantiate the contract object on node 7 I am able to retrieve the value, as expected:
When I instantiate the contract object on node 2 I am not able to retrieve the result, as expected:
The result of
Here's the result of
|
Its working fine now, i have to adjust the gasAmount I am passing while doing addCustomer(). |
System information
Geth version:
geth version
1.5.0-unstable
OS & Version: Windows/Linux/OSX
Ubuntu 16.04.1 LTS
Branch, Commit Hash or Release:
git status
Master
Expected behaviour
Should succeed
Actual behaviour
Transaction not getting deployed.
Steps to reproduce the behaviour
I have 6 Nodes each node having two accounts and are configured as Voter & Block maker.
I am trying to deploy contract(SimpleCustomerFactory) from node 6 as private to Node 1,2,3,4,5. It is getting deployed successfully.
Now I am trying to perform a private transaction(addCustomer) from the contract from node 6 to node 1.. I do receive transactionHash as a result, but I don't see the transaction to be added. Contract address remains null when I do getTransactionReceipt().
I don't see any error in any of the logs.
In the Node 6 log, I do see one line for the matching transaction hash.
I0318 09:24:48.615015 internal/ethapi/api.go:1060] Tx(0xcf39e4877e57e5f6e819832e
a9afbb3a863fb0f77d156147ab2933177bb09125) to: 0x6a8331ace0824d4c7872f6d2618b45a4
2f887798
I have attached the contract code and configuration files for your reference
init.txt
start.txt
SimpleCustomerFactory.txt
SimpleCustomer.txt
The text was updated successfully, but these errors were encountered: