Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
destream-blockchain
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
destream-blockchain
Commits
c2771f30
Commit
c2771f30
authored
6 years ago
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix decoded transaction model
parent
a309dcac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
TransactionModel.cs
...es/Stratis.Bitcoin/Controllers/Models/TransactionModel.cs
+11
-1
No files found.
Sources/Stratis.Bitcoin/Controllers/Models/TransactionModel.cs
View file @
c2771f30
...
...
@@ -75,7 +75,17 @@ namespace Stratis.Bitcoin.Controllers.Models
this
.
Version
=
trx
.
Version
;
this
.
LockTime
=
trx
.
LockTime
;
this
.
VIn
=
trx
.
Inputs
.
Select
(
txin
=>
new
Vin
(
txin
.
PrevOut
,
txin
.
Sequence
,
txin
.
ScriptSig
)).
ToList
();
this
.
VIn
=
trx
.
IsCoinBase
?
trx
.
Inputs
.
Select
(
txin
=>
new
Vin
(
txin
.
PrevOut
,
txin
.
Sequence
,
txin
.
ScriptSig
)).
ToList
()
:
trx
.
Inputs
.
Select
(
txin
=>
txin
.
IsChangePointer
()
?
new
Vin
{
ScriptSig
=
new
Script
(
txin
.
ScriptSig
),
TxId
=
txin
.
PrevOut
.
Hash
.
ToString
(),
VOut
=
txin
.
PrevOut
.
N
,
Sequence
=
(
uint
)
txin
.
Sequence
}
:
new
Vin
(
txin
.
PrevOut
,
txin
.
Sequence
,
txin
.
ScriptSig
)).
ToList
();
int
n
=
0
;
this
.
VOut
=
trx
.
Outputs
.
Select
(
txout
=>
new
Vout
(
n
++,
txout
,
network
)).
ToList
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment