@@ -1733,9 +1733,9 @@ Value offerupdate(const Array& params, bool fHelp) {
17331733 {
17341734 LOCK2 (cs_main, pwalletMain->cs_wallet );
17351735
1736- // if (mapOfferPending.count(vchOffer)
1737- // && mapOfferPending[vchOffer].size())
1738- // throw runtime_error("there are pending operations on that offer");
1736+ if (mapOfferPending.count (vchOffer)
1737+ && mapOfferPending[vchOffer].size ())
1738+ throw runtime_error (" there are pending operations on that offer" );
17391739
17401740 EnsureWalletIsUnlocked ();
17411741
@@ -1809,9 +1809,9 @@ Value offerrenew(const Array& params, bool fHelp) {
18091809 {
18101810 LOCK2 (cs_main, pwalletMain->cs_wallet );
18111811
1812- // if (mapOfferPending.count(vchOffer)
1813- // && mapOfferPending[vchOffer].size())
1814- // throw runtime_error("there are pending operations on that offer");
1812+ if (mapOfferPending.count (vchOffer)
1813+ && mapOfferPending[vchOffer].size ())
1814+ throw runtime_error (" there are pending operations on that offer" );
18151815
18161816 EnsureWalletIsUnlocked ();
18171817
@@ -1904,13 +1904,13 @@ Value offeraccept(const Array& params, bool fHelp) {
19041904 {
19051905 LOCK2 (cs_main, pwalletMain->cs_wallet );
19061906
1907- // if (mapOfferPending.count(vchOffer)
1908- // && mapOfferPending[vchOffer].size()) {
1909- // error( "offeraccept() : there are %d pending operations on that offer, including %s",
1910- // (int) mapOfferPending[vchOffer].size(),
1911- // mapOfferPending[vchOffer].begin()->GetHex().c_str());
1912- // throw runtime_error("there are pending operations on that offer");
1913- // }
1907+ if (mapOfferPending.count (vchOffer)
1908+ && mapOfferPending[vchOffer].size ()) {
1909+ error ( " offeraccept() : there are %d pending operations on that offer, including %s" ,
1910+ (int ) mapOfferPending[vchOffer].size (),
1911+ mapOfferPending[vchOffer].begin ()->GetHex ().c_str ());
1912+ throw runtime_error (" there are pending operations on that offer" );
1913+ }
19141914
19151915 EnsureWalletIsUnlocked ();
19161916
0 commit comments