@@ -172,14 +172,16 @@ type Client interface {
172
172
173
173
RemoveTransaction (ctx context.Context , tx_hash types.Hash ) (bool , error )
174
174
175
- SendAlert (ctx context.Context , alert types.AlertMessage ) error
175
+ SendAlert (ctx context.Context , alert types.Alert ) error
176
176
177
177
GetBlockTemplate (ctx context.Context ) (types.BlockTemplate , error )
178
178
179
179
TxPoolReady (ctx context.Context ) (bool , error )
180
180
181
181
// GetRawTxPool Returns all transaction ids in tx pool as a json array of string transaction ids.
182
- GetRawTxPool (ctx context.Context , verbose * bool ) (* types.RawTxPool , error )
182
+ GetRawTxPool (ctx context.Context ) (* types.RawTxPool , error )
183
+ // GetRawTxPool Returns all transaction ids in tx pool as a json array of string transaction ids.
184
+ GetRawTxPoolVerbose (ctx context.Context ) (* types.RawTxPoolVerbose , error )
183
185
184
186
// ClearTxPool Removes all transactions from the transaction pool.
185
187
ClearTxPool (ctx context.Context ) error
@@ -774,14 +776,21 @@ func (cli *client) TxPoolInfo(ctx context.Context) (*types.TxPoolInfo, error) {
774
776
return & result , nil
775
777
}
776
778
777
- func (cli * client ) GetRawTxPool (ctx context.Context , verbose * bool ) (* types.RawTxPool , error ) {
779
+ func (cli * client ) GetRawTxPool (ctx context.Context ) (* types.RawTxPool , error ) {
778
780
var txPool types.RawTxPool
779
781
780
- if verbose == nil {
781
- defaultVerbose := false
782
- verbose = & defaultVerbose
782
+ err := cli . c . CallContext ( ctx , & txPool , "get_raw_tx_pool" )
783
+ if err != nil {
784
+ return nil , err
783
785
}
784
- err := cli .c .CallContext (ctx , & txPool , "get_raw_tx_pool" , verbose )
786
+
787
+ return & txPool , err
788
+ }
789
+
790
+ func (cli * client ) GetRawTxPoolVerbose (ctx context.Context ) (* types.RawTxPoolVerbose , error ) {
791
+ var txPool types.RawTxPool
792
+
793
+ err := cli .c .CallContext (ctx , & txPool , "get_raw_tx_pool" , true )
785
794
if err != nil {
786
795
return nil , err
787
796
}
@@ -996,7 +1005,7 @@ func (cli *client) RemoveTransaction(ctx context.Context, tx_hash types.Hash) (b
996
1005
return result , nil
997
1006
}
998
1007
999
- func (cli * client ) SendAlert (ctx context.Context , alert types.AlertMessage ) error {
1008
+ func (cli * client ) SendAlert (ctx context.Context , alert types.Alert ) error {
1000
1009
return cli .c .CallContext (ctx , nil , "send_alert" , alert )
1001
1010
}
1002
1011
0 commit comments