# feeRate of 10 BTC / KB produces a total fee well above -maxtxfee
self.log.info("Test walletcreatefundedpsbt feeRate of 10 BTC/KB produces total fee well above -maxtxfee and raises RPC error")
# previously this was silently capped at -maxtxfee
assert_raises_rpc_error(-4,"Fee exceeds maximum configured by user (e.g. -maxtxfee, maxfeerate)",self.nodes[1].walletcreatefundedpsbt,[{"txid":txid,"vout":p2wpkh_pos},{"txid":txid,"vout":p2sh_p2wpkh_pos},{"txid":txid,"vout":p2pkh_pos}],{self.nodes[1].getnewaddress():29.99},0,{"feeRate":10,"add_inputs":True})
assert_raises_rpc_error(-4,"Fee exceeds maximum configured by user (e.g. -maxtxfee, maxfeerate)",self.nodes[1].walletcreatefundedpsbt,[{"txid":txid,"vout":p2wpkh_pos},{"txid":txid,"vout":p2sh_p2wpkh_pos},{"txid":txid,"vout":p2pkh_pos}],{self.nodes[1].getnewaddress():1},0,{"feeRate":10,"add_inputs":False})