DEBUGCTION OF FUNCTIONAL TESTS IN BITCOIN: Fixing of “JSONRPCEX CONTROL: NOTE Method” *
Bitcoin functional tests are essential to ensure the accuracy of blockchain and character and character. Howver, like the tests, fail with a cryptic error message, JSONRPCEX conception: Method not found (-32601) '. In this article, we will go to this story that is worthy in your
test_runner.pyfile and provide the resolion.
Test 1: Test_coins
TheTest_coins’ does not check if the parts are picked. This is a specific method call on the blockchain with the correct input settings.
Solution
Make sure that the “Createcoin” method is implemented in the Blockchain.py
file and has passed the arguments received (cornername”,
Amunt"):
Python
Blockchain.py
Def Cratecoin (CoinName, Amauunt, Pubkey):
...
'
Make sure that the implementation of test expansion.
Test 2: Test_coinsgettransAction
Test_coingettransAction 'checks are not recovered correctly. This is a specific method call on the blockchain with the correct input settings.
Solution
Check that the "etttransaction" method in the "Blockchain.py" file corresponds
Python
Blockchain.py
Def GettransAction (ID):
...
'
VERIFFY THATTHUS IMPLEMENTATION responds to Thet exports. If the solution does not solve the problem, make sure that the method call is correct and the passes
Test 3: Test_bytes
Thetest_bytes’ does not check if BYS appeared correctly on the JSON-RPC. This is a specific method call on the blockchain with the correct input settings.
Solution
Make sure the Sendbytes method in the blockchain.pyfile corresponds
Python
Blockchain.py
Def Sendbytes (ID, data):
...
'
Make sure that the implementation meets TheT's exports. If the solution does not solve the problem, check that the method call is correct and transmits the arguments given.
Additional advice
- Make these tests, Running Bee before debugging theTest_Runner.py` file.
- Use a debugger or prime numbers to inspect the variables and the function of the test execution test chalons.
- Consider adding errors and connection to your tests to help you diagnose problems.
By following the steps, you are to identify and solve the problem originally
Leave a Reply