Skip to content

Commit

Permalink
Merge pull request #2379 from greymistcube/bump/lib9c-to-e1742b5c
Browse files Browse the repository at this point in the history
⬆️ Bump lib9c to e1742b5c (libplanet 3.9.3)
  • Loading branch information
ipdae authored Jan 10, 2024
2 parents 9216807 + cbca00a commit bc959d9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lib9c
Submodule Lib9c updated 205 files
11 changes: 10 additions & 1 deletion NineChronicles.Headless/ActionEvaluationPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,16 @@ await _hub.BroadcastRenderBlockAsync(
var extra = new Dictionary<string, IValue>();
var encodeElapsedMilliseconds = stopwatch.ElapsedMilliseconds;

var eval = new NCActionEvaluation(pa, ev.Signer, ev.BlockIndex, ev.OutputState, ev.Exception, ev.PreviousState, ev.RandomSeed, extra);
var eval = new NCActionEvaluation(
pa,
ev.Signer,
ev.BlockIndex,
ev.OutputState,
ev.Exception,
ev.PreviousState,
ev.RandomSeed,
extra,
ev.TxId);
var encoded = MessagePackSerializer.Serialize(eval);
var c = new MemoryStream();
await using (var df = new DeflateStream(c, CompressionLevel.Fastest))
Expand Down
9 changes: 8 additions & 1 deletion NineChronicles.Headless/GraphQLServiceExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using GraphQL.Types;
using Libplanet.Explorer.GraphTypes;
using Libplanet.Explorer.Interfaces;
Expand Down Expand Up @@ -34,9 +35,13 @@ public static IServiceCollection AddLibplanetScalarTypes(this IServiceCollection
services.TryAddSingleton<AddressType>();
services.TryAddSingleton<ByteStringType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.PublicKeyType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.BlockHashType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.TxIdType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.TxResultType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.TxStatusType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.AccountStateType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.BencodexValueType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.LegacyBencodexValueType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.FungibleAssetValueType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.CurrencyType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.CurrencyInputType>();
Expand All @@ -45,7 +50,8 @@ public static IServiceCollection AddLibplanetScalarTypes(this IServiceCollection
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.VoteType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.BlockCommitType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.BoundPeerType>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.HashDigestSHA256Type>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.HashDigestType<SHA1>>();
services.TryAddSingleton<Libplanet.Explorer.GraphTypes.HashDigestType<SHA256>>();

return services;
}
Expand All @@ -70,6 +76,7 @@ public static IServiceCollection AddLibplanetExplorer(this IServiceCollection se
services.TryAddSingleton<BlockQuery>();
services.TryAddSingleton<TransactionQuery>();
services.TryAddSingleton<ExplorerQuery>();
services.TryAddSingleton<HelperQuery>();
services.TryAddSingleton(_ => new StateQuery()
{
Name = "LibplanetStateQuery",
Expand Down

0 comments on commit bc959d9

Please sign in to comment.