@@ -741,12 +741,13 @@ pub trait RpcApi: Sized {
741
741
self . call ( "listreceivedbyaddress" , handle_defaults ( & mut args, & defaults) )
742
742
}
743
743
744
+ // Blackcoin: remove RBF
744
745
fn create_psbt (
745
746
& self ,
746
747
inputs : & [ json:: CreateRawTransactionInput ] ,
747
748
outputs : & HashMap < String , Amount > ,
748
749
locktime : Option < i64 > ,
749
- replaceable : Option < bool > ,
750
+ /* replaceable: Option<bool>, */
750
751
) -> Result < String > {
751
752
let outs_converted = serde_json:: Map :: from_iter (
752
753
outputs. iter ( ) . map ( |( k, v) | ( k. clone ( ) , serde_json:: Value :: from ( v. to_btc ( ) ) ) ) ,
@@ -757,17 +758,18 @@ pub trait RpcApi: Sized {
757
758
into_json ( inputs) ?,
758
759
into_json ( outs_converted) ?,
759
760
into_json ( locktime) ?,
760
- into_json ( replaceable) ?,
761
+ /* into_json(replaceable)?, */
761
762
] ,
762
763
)
763
764
}
764
765
766
+ // Blackcoin: remove RBF
765
767
fn create_raw_transaction_hex (
766
768
& self ,
767
769
utxos : & [ json:: CreateRawTransactionInput ] ,
768
770
outs : & HashMap < String , Amount > ,
769
771
locktime : Option < i64 > ,
770
- replaceable : Option < bool > ,
772
+ /* replaceable: Option<bool>, */
771
773
) -> Result < String > {
772
774
let outs_converted = serde_json:: Map :: from_iter (
773
775
outs. iter ( ) . map ( |( k, v) | ( k. clone ( ) , serde_json:: Value :: from ( v. to_btc ( ) ) ) ) ,
@@ -776,20 +778,21 @@ pub trait RpcApi: Sized {
776
778
into_json ( utxos) ?,
777
779
into_json ( outs_converted) ?,
778
780
opt_into_json ( locktime) ?,
779
- opt_into_json ( replaceable) ?,
781
+ /* opt_into_json(replaceable)?, */
780
782
] ;
781
783
let defaults = [ into_json ( 0i64 ) ?, null ( ) ] ;
782
784
self . call ( "createrawtransaction" , handle_defaults ( & mut args, & defaults) )
783
785
}
784
786
787
+ // Blackcoin: remove RBF
785
788
fn create_raw_transaction (
786
789
& self ,
787
790
utxos : & [ json:: CreateRawTransactionInput ] ,
788
791
outs : & HashMap < String , Amount > ,
789
792
locktime : Option < i64 > ,
790
- replaceable : Option < bool > ,
793
+ /* replaceable: Option<bool>, */
791
794
) -> Result < Transaction > {
792
- let hex: String = self . create_raw_transaction_hex ( utxos, outs, locktime, replaceable) ?;
795
+ let hex: String = self . create_raw_transaction_hex ( utxos, outs, locktime, /* replaceable */ ) ?;
793
796
deserialize_hex ( & hex)
794
797
}
795
798
@@ -956,32 +959,37 @@ pub trait RpcApi: Sized {
956
959
self . call ( "getchaintips" , & [ ] )
957
960
}
958
961
962
+ // Blackcoin: remove RBF
959
963
fn send_to_address (
960
964
& self ,
961
965
address : & Address < NetworkChecked > ,
962
966
amount : Amount ,
963
967
comment : Option < & str > ,
964
968
comment_to : Option < & str > ,
965
969
subtract_fee : Option < bool > ,
970
+ /*
966
971
replaceable: Option<bool>,
967
972
confirmation_target: Option<u32>,
968
973
estimate_mode: Option<json::EstimateMode>,
974
+ */
969
975
) -> Result < bitcoin:: Txid > {
970
976
let mut args = [
971
977
address. to_string ( ) . into ( ) ,
972
978
into_json ( amount. to_btc ( ) ) ?,
973
979
opt_into_json ( comment) ?,
974
980
opt_into_json ( comment_to) ?,
975
981
opt_into_json ( subtract_fee) ?,
982
+ /*
976
983
opt_into_json(replaceable)?,
977
984
opt_into_json(confirmation_target)?,
978
985
opt_into_json(estimate_mode)?,
986
+ */
979
987
] ;
980
988
self . call (
981
989
"sendtoaddress" ,
982
990
handle_defaults (
983
991
& mut args,
984
- & [ "" . into ( ) , "" . into ( ) , false . into ( ) , false . into ( ) , 6 . into ( ) , null ( ) ] ,
992
+ & [ "" . into ( ) , "" . into ( ) , false . into ( ) /* , false.into(), 6.into(), null() */ ] ,
985
993
) ,
986
994
)
987
995
}
0 commit comments