packages feed

haskoin-node 0.7.0 → 0.7.1

raw patch · 4 files changed

+13/−2 lines, 4 files

Files

CHANGELOG.md view
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.7.1+### Added+- Allow to easily obtain a peer's publisher.+ ## 0.7.0 ### Added - Versioning for chain and peer database.
haskoin-node.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 0e33d7c5993dd152a270e0957b4aec8b09e67fb8f760b01945022ae62df8ac7b+-- hash: 171a802ba2daed9ddc6dae445c379ec9b2c43f2329ca613e533a3481ba12be72  name:           haskoin-node-version:        0.7.0+version:        0.7.1 synopsis:       Haskoin Node P2P library for Bitcoin and Bitcoin Cash description:    Bitcoin and Bitcoin Cash peer-to-peer protocol library featuring headers-first synchronisation. category:       Bitcoin, Finance, Network
src/Haskoin/Node.hs view
@@ -33,6 +33,7 @@     , managerGetPeer     , managerKill     , sendMessage+    , peerGetPublisher     , peerGetBlocks     , peerGetTxs     , chainGetBlock
src/Network/Haskoin/Node/Common.hs view
@@ -337,6 +337,12 @@ sendMessage :: MonadIO m => Message -> Peer -> m () sendMessage msg p = SendMessage msg `send` p +-- | Get a publisher associated to a peer. Must provide timeout as peer may+-- disconnect and become unresponsive.+peerGetPublisher ::+       MonadUnliftIO m => Int -> Peer -> m (Maybe (Publisher Message))+peerGetPublisher time = queryS time GetPublisher+ -- | Request full blocks from peer. Will return 'Nothing' if the list of blocks -- returned by the peer is incomplete, comes out of order, or a timeout is -- reached.