Skip to content

Conversation

iFoggz
Copy link
Member

@iFoggz iFoggz commented Jul 31, 2018

@barton2526 discovered a runaway exception (which turned out to be many possible runaway exceptions) when the neural network RPC calls to do a rain on a project. The function executeRain throws JSON Error which is handled by univalue/json. This results in a UniValue objError for reply and display of information in RPC however when neural network which is not calling from the JSON RPC ends up resulting in a run away exception that causes the client to shutdown. This catch will process the same exception as the JSON RPC does and display the error in result to the Neural network client.

Possible runaways that could occur before this implementation fix:

  • Insufficient balance
  • Invalid gridcoin address
  • Failing to create transaction
  • Wallet locked
  • Wallet unlocked for staking only
  • Invalid parameter/duplicated address
  • Transaction commit failed

This catch now handles these event successfully while providing the rpc reply to neural network with the error message.

@denravonska denravonska added this to the Betsy milestone Aug 1, 2018
@denravonska denravonska added the bug label Aug 1, 2018
@denravonska denravonska changed the base branch from development to staging August 1, 2018 05:01
@denravonska denravonska merged commit 10b8181 into gridcoin-community:staging Aug 4, 2018
@denravonska denravonska deleted the runawayexpdev branch August 4, 2018 04:53
denravonska added a commit that referenced this pull request Oct 19, 2018
Added:
 - Linux nodes can now stake superblocks using forwarded contracts #1060 (@tomasbrod).

Changed:
 - Replace interest with constant block reward #1160 (@tomasbrod).
   Fork is set to trigger at block 1420000.
 - Raise coinstake output count limit to 8 #1261 (@tomasbrod).
 - Port of Bitcoin hash implementation #1208 (@jamescowens).
 - Minor canges for the build documentation #1091 (@Lenni).
 - Allow sendmany to be used without an account specified #1158 (@Foggyx420).

Fixed:
 - Fix `cpids` and `validcpids` not returning the correct data #1233
   (@Foggyx420).
 - Fix `listsinceblock` not showing mined blocks to change addresses #501 (@Foggyx420).
 - Fix crash when raining using a locked wallet #1236 (@Foggyx420).
 - Fix invalid stake reward/fee calculation (@jamescowens).
 - Fix divide by zero bug in `getblockstats` RPC #1292 (@Foggyx420).
 - Bypass historical bad blocks on testnet #1252 (@Quezacoatl1).
 - Fix MacOS memorybarrier warnings #1193 (@ghost).

Removed:
 - Remove neuralhash from the getpeerinfo and node stats #1123 (@Foggyx420).
 - Remove obsolete NN code #1121 (@Foggyx420).
 - Remove (lower) Mint Limiter #1212 (@tomasbrod).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants