openassets-ruby 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/openassets/api.rb +13 -0
- data/lib/openassets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be50c083e4513da8559ca4c6748ec100d117072b
|
4
|
+
data.tar.gz: a938bc5076c8973fb5c5ac67676ebb9b0e596d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3c4916cfadc0aa2725f75e8a69a6410d7fac1c618e12bab271b2edac3bc96c8c65d3b52b9b1cc386405f2b5fe776fa4f7805372d79dbb7e9133257f6a86401e
|
7
|
+
data.tar.gz: 01b65141ccffce115dffd58571651db370a418c4a48313959a07fe66860d773f94df66e97d3b1673c20bd2cce4638551b6a407900aa24eca6aa77ce526211c17
|
data/lib/openassets/api.rb
CHANGED
@@ -268,6 +268,19 @@ module OpenAssets
|
|
268
268
|
# Add the marker output
|
269
269
|
result << OpenAssets::Protocol::TransactionOutput.new(marker_output.value, marker_output.parsed_script, nil, 0, OpenAssets::Protocol::OutputType::MARKER_OUTPUT)
|
270
270
|
|
271
|
+
# remove invalid marker
|
272
|
+
remove_outputs = []
|
273
|
+
for i in (marker_output_index + 1)..(outputs.length-1)
|
274
|
+
marker_output_payload = OpenAssets::Protocol::MarkerOutput.parse_script(outputs[i].pk_script)
|
275
|
+
unless marker_output_payload.nil?
|
276
|
+
remove_outputs << outputs[i]
|
277
|
+
result << OpenAssets::Protocol::TransactionOutput.new(
|
278
|
+
outputs[i].value, outputs[i].parsed_script, nil, 0, OpenAssets::Protocol::OutputType::MARKER_OUTPUT)
|
279
|
+
next
|
280
|
+
end
|
281
|
+
end
|
282
|
+
remove_outputs.each{|o|outputs.delete(o)}
|
283
|
+
|
271
284
|
# Add the transfer outputs
|
272
285
|
input_enum = inputs.each
|
273
286
|
input_units_left = 0
|
data/lib/openassets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openassets-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-ruby
|