Added the author_submitExtrinsic RPC method to submit an extrinsic to the transaction pool.
Added the author_submitAndWatchExtrinsic WebSocket RPC method to submit an extrinsic and subscribe to its state updates.
Added the author_unwatchExtrinsic method to end the session.
Resolved the issue in the TransactionPool related to operating with byte[] keys in the transaction map. The problem is that the .equals() method for byte[] doesn't compare the content of the arrays but instead checks if they reference the same array. Since the HashMap implementation uses .equals() for nearly all of its operations, this behavior caused the TransactionPool to act strangely.
Description
author_submitExtrinsic
RPC method to submit an extrinsic to the transaction pool.author_submitAndWatchExtrinsic
WebSocket RPC method to submit an extrinsic and subscribe to its state updates.author_unwatchExtrinsic
method to end the session.TransactionPool
related to operating with byte[] keys in the transaction map. The problem is that the.equals()
method for byte[] doesn't compare the content of the arrays but instead checks if they reference the same array. Since the HashMap implementation uses .equals() for nearly all of its operations, this behavior caused theTransactionPool
to act strangely.Fixes https://github.com/LimeChain/Fruzhin/issues/542