Use the new namecoin-cli command

This commit is contained in:
rnhmjoj 2015-06-29 05:19:32 +02:00
parent dc2ae1ef07
commit 8f89f9a726

View File

@ -6,8 +6,8 @@ import Data.Aeson
import Data.Aeson.TH import Data.Aeson.TH
import Data.ByteString.Lazy.Char8 (pack) import Data.ByteString.Lazy.Char8 (pack)
readCommand = readProcess "namecoind" ["name_list"] "" readCommand = readProcess "namecoin-cli" ["name_list"] ""
updateCommand n v = readProcessWithExitCode "namecoind" ["name_update", n, v] "" updateCommand n v = readProcessWithExitCode "namecoin-cli" ["name_update", n, v] ""
data Name = Name { name :: String data Name = Name { name :: String
, value :: String , value :: String