Switch away from exceptions in refactored tx code

Switch away from exceptions in refactored tx code

After refactoring general-purpose PSBT and transaction code out of RPC code,
for use in the GUI, it's no longer appropriate to throw exceptions. Instead we
now return bools for success, and take an output parameter for an error object.
We still use JSONRPCError() for the error objects, since only RPC callers
actually care about the error codes.

情報元 - Switch away from exceptions in refactored tx code · bitcoin/[email protected] · GitHub

Switch away from exceptions in refactored tx code · bitcoin/bitcoin@bd0dbe8 · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る