Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trigger type for getapplicationlog #380

Merged
merged 31 commits into from
Nov 16, 2020
Merged
Changes from 10 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4b18582
Merge pull request #4 from neo-project/master
Oct 13, 2020
330b158
Merge pull request #5 from neo-project/master
Oct 15, 2020
120f52c
Merge pull request #6 from neo-project/master
Oct 21, 2020
c7997a9
fixed-bug-1021
Oct 21, 2020
7c9f02b
Update src/RpcServer/RpcServer.SmartContract.cs
shargon Oct 21, 2020
1079aa3
😂
Oct 21, 2020
aa8e120
Keeping up to date with neo
Oct 29, 2020
928f3f4
Keeping up to date with neo
Oct 29, 2020
2c8cf6e
Revert "Keeping up to date with neo"
Oct 29, 2020
0b5473a
Prevent create key if not null
shargon Oct 29, 2020
cd4645e
dotnet format
shargon Oct 29, 2020
7d93776
Query application log via blockhash
Oct 30, 2020
319328d
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
Oct 30, 2020
dbc0f5a
Merge branch 'master' into TriggerType
Oct 30, 2020
1bdeb72
update
Nov 1, 2020
3fdc740
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
Nov 1, 2020
88554dd
Merge branch 'master' into TriggerType
Nov 2, 2020
582a785
Modifying the Json storage structure
Nov 2, 2020
43d0814
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
Nov 2, 2020
2e194b2
Modifying the JSON storage structure 2
Nov 2, 2020
745196d
Additional optional "trigger" parameter to getapplicationlog for clie…
Nov 3, 2020
6bf5a8d
Re-run checks
Nov 3, 2020
4e8b86e
Merge branch 'master' into TriggerType
Nov 4, 2020
2b58d37
Merge branch 'master' into TriggerType
Nov 9, 2020
24744d1
Merge branch 'master' into TriggerType
Nov 11, 2020
edf8e5b
StrictUTF8
Nov 11, 2020
934dd90
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
Nov 11, 2020
7a232fc
Update src/ApplicationLogs/LogReader.cs
shargon Nov 11, 2020
823c0f2
Merge branch 'master' into TriggerType
vncoelho Nov 12, 2020
ff729ec
Merge branch 'master' into TriggerType
superboyiii Nov 13, 2020
2b303d1
Optimize
shargon Nov 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ApplicationLogs/LogReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public void OnPersist(StoreView snapshot, IReadOnlyList<Blockchain.ApplicationEx
}
return notification;
}).ToArray();
writeBatch.Put((appExec.Transaction?.Hash ?? snapshot.PersistingBlock.Hash).ToArray(), Encoding.UTF8.GetBytes(json.ToString()));
writeBatch.Put(appExec.Transaction?.Hash.ToArray() ??
snapshot.PersistingBlock.Hash.ToArray().Concat(new byte[] { (byte)appExec.Trigger }).ToArray(),
Encoding.UTF8.GetBytes(json.ToString()));
}
db.Write(WriteOptions.Default, writeBatch);
}
Expand Down