Skip to content
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

Getting an Error while creating smart contract: QJsonValue(string, "Connection refused") #1

Open
tanujsinghkushwah opened this issue Jun 27, 2019 · 9 comments

Comments

@tanujsinghkushwah
Copy link

QJsonrpc not working properly while running ./Diaries.

Terminal:
$ ./Diaries
QJsonValue(string, "Connection refused")
Error:Blockchain::Blockchain, getCoinbaseFromTheBlockChain call failed

@mhadikazemian
Copy link

Did you find any solution for this?

@tanujsinghkushwah
Copy link
Author

tanujsinghkushwah commented Oct 26, 2019 via email

@MohamedTaharHAMMI
Copy link
Owner

  • Are you sure that you installed well "qjsonrpc: https://bitbucket.org/devonit/qjsonrpc" ?
  • Also, you have to check if the files paths are correct or not. For example in Blockchain.cpp :
    #define CONTRACT_PATH "/home/mohamed/THESE/Journal/Implementation/BCTrustV2/contracts/BCTrustV2.sol" MUST be replaced by a correct file_path.

@mhadikazemian
Copy link

  • Are you sure that you installed well "qjsonrpc: https://bitbucket.org/devonit/qjsonrpc" ?
  • Also, you have to check if the files paths are correct or not. For example in Blockchain.cpp :
    #define CONTRACT_PATH "/home/mohamed/THESE/Journal/Implementation/BCTrustV2/contracts/BCTrustV2.sol" MUST be replaced by a correct file_path.

Thanks for your response.

  • I am not sure if I had installed "qjsonrpc" well. After downloading and extracting it on the Desktop, I opened the extracted folder in the terminal. Then I typed mkdir build. Next cd build. After that sudo qmake .. PREFIX=/lib. And at the end sudo make install. Is this the right way?
  • The files paths seem correct.

When I click on the "Start the blockchain contract" button in the MainWindow I see "eth_coinbase" and "eth_compileSolidity" on the testrpc terminal window and I see "QJsonValue(undefined)" on the ./Diaries terminal window and the "MainWindow" disappears.

I appreciate it if you could tell me what I am doing wrong?

@mhadikazemian
Copy link

To be sure about files paths, I even changed everything (computer name, folders names, etc) to the exact things that you showed in the video.

PLEASE HELP!!! THIS IS VERY IMPORTANT TO ME...

@tanujsinghkushwah
Copy link
Author

tanujsinghkushwah commented Nov 2, 2019 via email

@mhadikazemian
Copy link

Give me some time. I have to set-up all the things again on my end as I was working on this project during my summer intern. I'll get back to you ASAP.

On Sat 2 Nov, 2019, 9:49 AM mhadikazemian, @.***> wrote: To be sure about files paths, I even changed everything (computer name, folders names, etc) to the exact things that you showed in the video. PLEASE HELP!!! THIS IS VERY IMPORTANT TO ME... — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#1?email_source=notifications&email_token=AH3KDPK4FPN6R3UA62ZI3TLQRT5U7A5CNFSM4H3ZT6P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC4TNUQ#issuecomment-549009106>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3KDPNF46ZJ6O2JYNQ2CE3QRT5U7ANCNFSM4H3ZT6PQ .

Thank you.

@MohamedTaharHAMMI
Copy link
Owner

Hello mhadikazemian,
It seems that you well installed the packages. The RPC communication and the BCTrust are correctly executed otherwise you can not get "eth_compile".
Did you change the .sol file (this can happen when you add a space character) !!

@mhadikazemian
Copy link

Hello mhadikazemian,
It seems that you well installed the packages. The RPC communication and the BCTrust are correctly executed otherwise you can not get "eth_compile".
Did you change the .sol file (this can happen when you add a space character) !!

Thanks for your reply. No, as far as I know, I have not even changed a space.

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

No branches or pull requests

3 participants