fix get_new_address in merchant.py
[electrum-nvc.git] / scripts / merchant.py
index 048884c..eee706d 100644 (file)
@@ -113,8 +113,8 @@ def process_request(i, amount, confirmations, expires_in, password):
     if password!=my_password:
         print "wrong password ", password
         return 
-    addr = wallet.get_new_address(i, 0)
-    out_queue.put( ('request',(i,addr,amount,expires_in) ))
+    addr = wallet.get_new_address(0, i, 0)
+    out_queue.put( ('request', (i, addr, amount, confirmations, expires_in) ))
     return addr
 
 def get_mpk():