CKeyPool stub
authorCryptoManiac <balthazar@yandex.ru>
Tue, 25 Aug 2015 16:34:05 +0000 (19:34 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Tue, 25 Aug 2015 16:34:05 +0000 (19:34 +0300)
Novacoin/CKeyPool.cs [new file with mode: 0644]
Novacoin/Novacoin.csproj

diff --git a/Novacoin/CKeyPool.cs b/Novacoin/CKeyPool.cs
new file mode 100644 (file)
index 0000000..a90a1f6
--- /dev/null
@@ -0,0 +1,48 @@
+\feffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Novacoin
+{
+    public class CKeyPool
+    {
+        public CKeyPool(int nSize = 100)
+        {
+            // TODO
+        }
+
+        public CKeyID ReserveKey(out int nKeyIndex)
+        {
+            // TODO
+
+            nKeyIndex = -1;
+
+            return (new CKeyPair()).KeyID;
+        }
+
+        public void RemoveKey(int nIndex)
+        {
+            // TODO
+        }
+
+        public void ReturnKey(int nIndex)
+        {
+            // TODO
+        }
+
+        public void ResetPool()
+        {
+            // TODO
+        }
+
+        public long OldestTime
+        {
+            get {
+                // TODO
+                return 0;
+            }
+        }
+    }
+}
index 0f18a22..fc561f8 100644 (file)
@@ -39,6 +39,7 @@
     <Compile Include="CKey.cs" />
     <Compile Include="CKeyID.cs" />
     <Compile Include="CKeyPair.cs" />
+    <Compile Include="CKeyPool.cs" />
     <Compile Include="IListExtensions.cs" />
     <Compile Include="CNovacoinAddress.cs" />
     <Compile Include="COutPoint.cs" />