From fee26d5b2e0cdf49335a38423bb6cb62505a79eb Mon Sep 17 00:00:00 2001 From: area363 Date: Fri, 14 May 2021 14:53:41 +0900 Subject: [PATCH 1/3] bump libplanet --- .Libplanet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.Libplanet b/.Libplanet index 0aaa054f14..0a5702ca57 160000 --- a/.Libplanet +++ b/.Libplanet @@ -1 +1 @@ -Subproject commit 0aaa054f14c4444ca4436e26d33df8f4b0fd9625 +Subproject commit 0a5702ca57612ef5275a7e8ad88bf21ad38474b9 From 3f06c4b8bd0a24ca816e6a7ddffc0c5a4b10705c Mon Sep 17 00:00:00 2001 From: area363 Date: Fri, 14 May 2021 15:35:33 +0900 Subject: [PATCH 2/3] bump libplanet to 77a6eb6d175f0ed550bbf01b1fe0afc17e625887 --- .Libplanet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.Libplanet b/.Libplanet index 0a5702ca57..77a6eb6d17 160000 --- a/.Libplanet +++ b/.Libplanet @@ -1 +1 @@ -Subproject commit 0a5702ca57612ef5275a7e8ad88bf21ad38474b9 +Subproject commit 77a6eb6d175f0ed550bbf01b1fe0afc17e625887 From 8b7f1ff7b2cc079e2d67db4fbaea219896cf97d8 Mon Sep 17 00:00:00 2001 From: area363 Date: Fri, 14 May 2021 16:11:48 +0900 Subject: [PATCH 3/3] implement IActionContext.BlockHash --- .Lib9c.Tests/Action/ActionContext.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.Lib9c.Tests/Action/ActionContext.cs b/.Lib9c.Tests/Action/ActionContext.cs index 9a4d22f6ea..49d5f0c4d9 100644 --- a/.Lib9c.Tests/Action/ActionContext.cs +++ b/.Lib9c.Tests/Action/ActionContext.cs @@ -3,6 +3,7 @@ namespace Lib9c.Tests.Action using System.Security.Cryptography; using Libplanet; using Libplanet.Action; + using Libplanet.Blocks; using Libplanet.Tx; public class ActionContext : IActionContext @@ -13,6 +14,8 @@ public class ActionContext : IActionContext public Address Miner { get; set; } + public BlockHash BlockHash { get; set; } + public long BlockIndex { get; set; } public bool Rehearsal { get; set; } @@ -33,6 +36,7 @@ public IActionContext GetUnconsumedContext() Signer = Signer, TxId = TxId, Miner = Miner, + BlockHash = BlockHash, BlockIndex = BlockIndex, Rehearsal = Rehearsal, PreviousStates = PreviousStates,