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

Duplicate shares #50

Closed
Retropex opened this issue Jul 17, 2024 · 5 comments
Closed

Duplicate shares #50

Retropex opened this issue Jul 17, 2024 · 5 comments

Comments

@Retropex
Copy link

Retropex commented Jul 17, 2024

QueryFailedError: SQLITE_ERROR: no such column: NaN
    at handler (/home/leo/public-pool/src/driver/sqlite/SqliteQueryRunner.ts:113:26)
    at Statement.errBack (/home/leo/public-pool/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'UPDATE "client_entity" SET "hashRate" = NaN, "deletedAt" = ?, "updatedAt" = ? WHERE ("address" = ? AND "clientName" = ? AND "sessionId" = ?)',
  parameters: [
    undefined,
    '0NaN-aN-aN aN:aN:aN.NaN',
    'tb1**********************',
    'worker',
    'a25199b4'
  ],
  driverError: [Error: SQLITE_ERROR: no such column: NaN] {
    errno: 1,
    code: 'SQLITE_ERROR'
  },
  errno: 1,
  code: 'SQLITE_ERROR'
}
{"id":48,"result":null,"error":[22,"Duplicate share",""]}

getting duplicate share on testnet4 with a bitaxe ultra

@benjamin-wilson
Copy link
Owner

I'm not exactly sure how this code path was achieved but the underlying issue has been fixed by initializing hashrate to 0.
de2b41a

@Retropex
Copy link
Author

Retropex commented Jul 18, 2024

Still getting it:
image

It also seems to not only be duplicate share bug but also discard valid share since the best difficulty miss match on the pool UI and bitaxe UI.
image
image

@benjamin-wilson
Copy link
Owner

Does this only happen on testnet4?

@Retropex
Copy link
Author

yes, it seems to work normally on mainnet:

image image

@benjamin-wilson
Copy link
Owner

Ah ok, I haven't tested it with testnet4 and is likely the problem. I'm going to close these issues and make a single one for that.

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

2 participants