bitsy-bitcoin 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0601f65cb29fba9d52ac3695674b21b8ea664622
4
- data.tar.gz: 42774a68c77b8273f0b63808b985d160a37a64ea
3
+ metadata.gz: 4b692b3791e8e6abb4131bb0c9151f42d378f252
4
+ data.tar.gz: 9d345f228b8fad7c98321379e68d33776bcea596
5
5
  SHA512:
6
- metadata.gz: 47bb23735b9d8885011c79c37b91f10337821073ad4949483e2b8a32bc1bbfa444cb3d43ebd7c40e046d2c55b4f5ac06f4e68f816e3cb76cc87c75199ce7a1a6
7
- data.tar.gz: 623dbb87345a46309e32e5af8cd5a11701ff89c57f46f865fedbfab318f089c198ab42ee9f6220dddfa3b25a5e80ff81e2e982f90a249bf6d1aac7836938b198
6
+ metadata.gz: dc1b348c97e58ee019b0a469b0dc0df27e19bad684df7a32f8a44d20465971d06a64a5dcc87631ae579d2f2a5987ab80410b4726ba9aea8bc669daa4fd66f2c5
7
+ data.tar.gz: ce0184f1f6014a9a571823d258ad70829fdfc2cef4f2ca87e7cef286e2126cfaa5990312bd7abc0aec25ee00b6b81f6eaaffcc82cbe97c8d64255ed2104ef20b
@@ -9,8 +9,8 @@ module Bitsy
9
9
  blockchain_tx = Blockchain.
10
10
  get_tx(ctx.payment_transaction.transaction_id)
11
11
  confirmations = if blockchain_tx.block_height
12
- blockchain_tx.block_height + 1 -
13
- ctx.latest_block.height
12
+ ctx.latest_block.height -
13
+ blockchain_tx.block_height + 1
14
14
  else
15
15
  0
16
16
  end
data/lib/bitsy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bitsy
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitsy-bitcoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag