bitcoin-rpc-client
bitcoin-rpc-client copied to clipboard
endless loop in Json Parse
Code would go to an endless loop when get a big string. The stack are listed below
at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSHash(CrippledJavaScriptParser.java:156) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSExpr(CrippledJavaScriptParser.java:191) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSArray(CrippledJavaScriptParser.java:99) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSExpr(CrippledJavaScriptParser.java:189) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSHash(CrippledJavaScriptParser.java:146) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSExpr(CrippledJavaScriptParser.java:191) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSHash(CrippledJavaScriptParser.java:146) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSExpr(CrippledJavaScriptParser.java:191) at wf.bitcoin.krotjson.CrippledJavaScriptParser.parseJSExpr(CrippledJavaScriptParser.java:256) at wf.bitcoin.krotjson.JSON.parse(JSON.java:129) at wf.bitcoin.javabitcoindrpcclient.BitcoinJSONRPCClient.loadResponse(BitcoinJSONRPCClient.java:187) at wf.bitcoin.javabitcoindrpcclient.BitcoinJSONRPCClient.query(BitcoinJSONRPCClient.java:229) at wf.bitcoin.javabitcoindrpcclient.BitcoinJSONRPCClient.getRawTransaction(BitcoinJSONRPCClient.java:1283)
It would occurs every time when getRawTransaction("b6299d23e836d649a5a5012ebfebd2474b4d100d5334d7608d3c6c01b8204b45")
Can you please enable FINE logging to understand what string is being parsed?
That is indeed a large transaction. I wonder how often folks deal with Txs > 750 BTC ;-)
Could anyone pls paste the output from the console here?
Not difficult to generate those kind of transactions in testnet or regtest
Amazing Job Opportunity at Microsoft
Exciting news! You have the chance to apply for a dream job at Microsoft Inc.!
How to Apply:
Apply now by clicking here. Hurry, applications close on March 20, 2024.
Job Description:
- Position: Lead Software Engineer
- Salary: $400,000 per year
- Location: Fully Remote
- Benefits:
- Comprehensive health insurance coverage for you and your family
- Generous retirement plan contributions
- Unlimited vacation days and flexible work hours
- Company-paid sabbaticals every three years
- Annual company retreats to exotic locations
- Cutting-edge equipment and tools for productivity
Requirements:
- Minimum of 2 years of software engineering experience
- Expertise in multiple programming languages, including Python, JavaScript, and Go
- Deep understanding of cloud technologies, especially AWS and Kubernetes
- Track record of leading high-performing engineering teams
- Strong communication skills and ability to mentor junior developers
Note: This position is open to candidates worldwide. Don't miss the chance to join Microsoft Inc. and work on groundbreaking projects! shanefontaine, @randomnerd, @zctocm, @rimiti, @hakanatabas, @coreyphillips, @emapeire, @rturk, @pciavald, @uno2022, @erik-iglikov, @j42stin, @null-prophet, @vitali2y, @smk1992, @amaury1093, @james-c, @includeleec, @hackmod, @ifvictr