Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
neoppod
Commits
a414f91f
Commit
a414f91f
authored
Dec 21, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserve 'packed' flag on import/iteration
parent
5abfa5fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
neo/client/app.py
neo/client/app.py
+0
-1
neo/client/iterator.py
neo/client/iterator.py
+2
-1
neo/storage/database/importer.py
neo/storage/database/importer.py
+3
-1
No files found.
neo/client/app.py
View file @
a414f91f
...
@@ -790,7 +790,6 @@ class Application(ThreadedApplication):
...
@@ -790,7 +790,6 @@ class Application(ThreadedApplication):
txn_info
[
k
]
=
v
txn_info
[
k
]
=
v
def
_getTransactionInformation
(
self
,
tid
):
def
_getTransactionInformation
(
self
,
tid
):
packet
=
Packets
.
AskTransactionInformation
(
tid
)
return
self
.
_askStorageForRead
(
tid
,
return
self
.
_askStorageForRead
(
tid
,
Packets
.
AskTransactionInformation
(
tid
))
Packets
.
AskTransactionInformation
(
tid
))
...
...
neo/client/iterator.py
View file @
a414f91f
...
@@ -35,7 +35,8 @@ class Transaction(BaseStorage.TransactionRecord):
...
@@ -35,7 +35,8 @@ class Transaction(BaseStorage.TransactionRecord):
""" Transaction object yielded by the NEO iterator """
""" Transaction object yielded by the NEO iterator """
def
__init__
(
self
,
app
,
txn
):
def
__init__
(
self
,
app
,
txn
):
super
(
Transaction
,
self
).
__init__
(
txn
[
'id'
],
' '
,
super
(
Transaction
,
self
).
__init__
(
txn
[
'id'
],
'p'
if
txn
[
'packed'
]
else
' '
,
txn
[
'user_name'
],
txn
[
'description'
],
txn
[
'ext'
])
txn
[
'user_name'
],
txn
[
'description'
],
txn
[
'ext'
])
self
.
app
=
app
self
.
app
=
app
self
.
oid_list
=
txn
[
'oids'
]
self
.
oid_list
=
txn
[
'oids'
]
...
...
neo/storage/database/importer.py
View file @
a414f91f
...
@@ -365,7 +365,9 @@ class ImporterDatabaseManager(DatabaseManager):
...
@@ -365,7 +365,9 @@ class ImporterDatabaseManager(DatabaseManager):
self
.
storeTransaction
(
tid
,
object_list
,
(
self
.
storeTransaction
(
tid
,
object_list
,
(
(
x
[
0
]
for
x
in
object_list
),
(
x
[
0
]
for
x
in
object_list
),
str
(
txn
.
user
),
str
(
txn
.
description
),
str
(
txn
.
user
),
str
(
txn
.
description
),
cPickle
.
dumps
(
txn
.
extension
),
False
,
tid
),
False
)
cPickle
.
dumps
(
txn
.
extension
),
txn
.
status
==
'p'
,
tid
),
False
)
self
.
releaseData
(
data_id_list
)
self
.
releaseData
(
data_id_list
)
logging
.
debug
(
"TXN %s imported (user=%r, desc=%r, len(oid)=%s)"
,
logging
.
debug
(
"TXN %s imported (user=%r, desc=%r, len(oid)=%s)"
,
util
.
dump
(
tid
),
txn
.
user
,
txn
.
description
,
len
(
object_list
))
util
.
dump
(
tid
),
txn
.
user
,
txn
.
description
,
len
(
object_list
))
...
...
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