Enable new native transaction scanning
This commit is contained in:
parent
ec72015524
commit
5788a26880
2 changed files with 5 additions and 12 deletions
|
@ -23,7 +23,8 @@ main = do
|
||||||
putStrLn "Connected to MongoDB!"
|
putStrLn "Connected to MongoDB!"
|
||||||
checkZcashPrices pipe (c_dbName loadedConfig)
|
checkZcashPrices pipe (c_dbName loadedConfig)
|
||||||
scanZcash' loadedConfig pipe
|
scanZcash' loadedConfig pipe
|
||||||
scanPayments loadedConfig pipe
|
{-scanPayments loadedConfig pipe-}
|
||||||
|
scanTxNative loadedConfig pipe
|
||||||
checkPayments pipe (c_dbName loadedConfig)
|
checkPayments pipe (c_dbName loadedConfig)
|
||||||
expireOwners pipe (c_dbName loadedConfig)
|
expireOwners pipe (c_dbName loadedConfig)
|
||||||
updateLogins pipe loadedConfig
|
updateLogins pipe loadedConfig
|
||||||
|
|
|
@ -2024,10 +2024,6 @@ scanTxNative config pipe = do
|
||||||
case xOrder of
|
case xOrder of
|
||||||
Nothing -> error "Failed to retrieve order from database"
|
Nothing -> error "Failed to retrieve order from database"
|
||||||
Just xO -> do
|
Just xO -> do
|
||||||
print $ qtotalZec xO
|
|
||||||
print $ zamount x
|
|
||||||
print z
|
|
||||||
print $ qaddress xO
|
|
||||||
when
|
when
|
||||||
(not (qpaid xO) &&
|
(not (qpaid xO) &&
|
||||||
qtotalZec xO == zamount x && z == qaddress xO) $ do
|
qtotalZec xO == zamount x && z == qaddress xO) $ do
|
||||||
|
@ -2093,11 +2089,7 @@ scanTxNative config pipe = do
|
||||||
else error
|
else error
|
||||||
"Couldn't parse externalInvoice for WooCommerce"
|
"Couldn't parse externalInvoice for WooCommerce"
|
||||||
_ -> putStrLn "Not an integration order"
|
_ -> putStrLn "Not an integration order"
|
||||||
else do
|
else liftIO $
|
||||||
print $
|
|
||||||
"Regular order" ++
|
|
||||||
T.unpack orderId ++ " " ++ show (zamount x)
|
|
||||||
liftIO $
|
|
||||||
access p master dbName $
|
access p master dbName $
|
||||||
markOrderPaid (T.unpack orderId, zamount x)
|
markOrderPaid (T.unpack orderId, zamount x)
|
||||||
Left e -> print "Unable to parse order memo"
|
Left e -> print "Unable to parse order memo"
|
||||||
|
|
Loading…
Reference in a new issue