packages feed

haskoin-core 0.3.0 → 0.3.1

raw patch · 4 files changed

+20/−3 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Network.Haskoin.Constants: prodnet :: Network
+ Network.Haskoin.Constants: testnet3 :: Network
+ Network.Haskoin.Internals: buildInput :: Tx -> Int -> ScriptOutput -> (Maybe RedeemScript) -> TxSignature -> PubKey -> Either String ScriptInput
+ Network.Haskoin.Transaction: buildInput :: Tx -> Int -> ScriptOutput -> (Maybe RedeemScript) -> TxSignature -> PubKey -> Either String ScriptInput

Files

Network/Haskoin/Constants.hs view
@@ -5,6 +5,8 @@ module Network.Haskoin.Constants ( -- ** Data   Network(..)+, prodnet+, testnet3   -- ** Functions , switchToTestnet3 , setNetwork@@ -31,11 +33,14 @@  import Data.Bits (shiftR) import Data.ByteString (ByteString)+import qualified Data.ByteString.Char8 as C8 (concat, pack) import Data.IORef (IORef, newIORef, readIORef, writeIORef)+import Data.Version (showVersion) import Data.Word (Word8, Word32, Word64) import Data.LargeWord (Word256) import Network.Haskoin.Block.Types import System.IO.Unsafe (unsafePerformIO)+import Paths_haskoin_core (version)  data Network = Network     { getNetworkName                :: !String@@ -166,7 +171,11 @@         }     , getMaxBlockSize = 1000000     , getMaxSatoshi = 2100000000000000-    , getHaskoinUserAgent = "/haskoin:0.3.0/"+    , getHaskoinUserAgent = C8.concat+        [ "/haskoin:"+        , C8.pack $ showVersion version+        , "/"+        ]     , getDefaultPort = 8333     , getAllowMinDifficultyBlocks = False     , getPowLimit = fromIntegral (maxBound `shiftR` 32 :: Word256)@@ -234,7 +243,11 @@         }     , getMaxBlockSize = 1000000     , getMaxSatoshi = 2100000000000000-    , getHaskoinUserAgent = "/haskoin-testnet:0.3.0/"+    , getHaskoinUserAgent = C8.concat+        [ "/haskoin-testnet:"+        , C8.pack $ showVersion version+        , "/"+        ]     , getDefaultPort = 18333     , getAllowMinDifficultyBlocks = True     , getPowLimit = fromIntegral (maxBound `shiftR` 32 :: Word256)
Network/Haskoin/Transaction.hs view
@@ -39,6 +39,7 @@ , getFee , getMSFee +, buildInput ) where  import Network.Haskoin.Transaction.Builder
Network/Haskoin/Transaction/Builder.hs view
@@ -15,6 +15,8 @@ , chooseMSCoinsSink , getFee , getMSFee++, buildInput ) where  import Control.Arrow (first)
haskoin-core.cabal view
@@ -1,5 +1,5 @@ name:                  haskoin-core-version:               0.3.0+version:               0.3.1 synopsis:     Implementation of the core Bitcoin protocol features. description:@@ -72,6 +72,7 @@                    Network.Haskoin.Test.Script                    Network.Haskoin.Test.Transaction                    Network.Haskoin.Test.Block+                   Paths_haskoin_core      extensions: EmptyDataDecls                 OverloadedStrings