kderme commented on this pull request.
> res <- update' _wallets $ SwitchToFork k n blockssByAccount
case res of
Left err -> return $ Left err
— Right changes -> do modifyMVar_ _walletSubmission $
+ Right changes -> do mapM_ (putTxMeta _walletMeta) $ concat metas
I add the reply also here: If the Tx was added by the same account it will be ignored. If it was added by a different account it will create a new TxMeta entry. In any case, if Inputs and Outputs are different it will throw an error.