-
Notifications
You must be signed in to change notification settings - Fork 20
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
RPC getblocktemplate returns version: -1476395008 #392
Comments
Line 714 in da2c144
Removed that line, recomiled and it works. |
@nickoarg what's your gcc version? |
can you try to replace this line with |
while not conventional, the version is just fine.. |
Hi Tony,
And the returned bloc after modifying with the suggested change: |
thats not an issue with gcc, thats from .net, where are you seeing this? |
At the pool software. Yes, is the .net that is complaining. |
looks like a quick fix can be |
I'm still getting this error
|
@nickoarg bonesoul/CoiniumServ#933 shows a similar issue where it overflows a uint32/64 using dotnet, might provide some clues? i can speak authoritatively here and say icemining (the first non-dev pool) interprets the version -1476395008 as versionbits a8000000, with no issues on submitblock, nor warnings like unknown block versions are being mined, which I have recently observed in the past few days. interpreting version as a uint32 should return 2818572288, then as hex a8000000. not a great solution, but try: |
I've updated the node to 0.6.4 and the issue persists. I'll see if I can use bonesoul/CoiniumServ#933 |
@nickoarg try this: have submitted PR to merits team |
Just tried that. Same result:
Running over Mono 5.14.0.177 (tarball Mon Aug 6 09:13:43 UTC 2018), framework: 4.5 (v4.0.30319.42000). |
its still displaying -1476395008? the build displays that number on my machine pre-patch.. the patch gives 671088640 as a result |
can you post the output of:
|
Sure
|
ok, what response does it give once the patch is removed & daemon recompiled? |
Confirmed, same output, even with make clean, git pull, all fresh.
|
the only other thing i can think of is a path issue or forgetting to run 'make install' at end of compile. actually, you cant write to /usr without sudo'ing (i notice youre not root).. |
Hi, sorry for the delay, same result by making sure that I'm running the latest.
|
As root; can you run: |
Describe the issue
Pool receives an incorrect version data in the rpc response for getworktemplate
Can you reliably reproduce the issue?
Yes
If so, please list the steps to reproduce below:
get:
Enter host password for user 'rpcpool':
{"result":{"capabilities":["proposal"],"version":-1476395008,"previousblockhash": ...
Expected behaviour
Version should be valid System.UInt32
Actual behaviour
meritd returned an invalid value
Screenshots.
What version of merit-core are you using?
Self compiled from source
Machine specs:
The text was updated successfully, but these errors were encountered: