Repository: mempoolco/spruned (language: python)

Issue:
Invalid 'initialblockdownload' field in getblockchaininfo
The latest master version of lightning is trying to get the initalblockdownload field from getblockchaininfo which is missing on spruned:

```
Invalid 'initialblockdownload' field in getblockchaininfo '{
  "bestblockhash": "000000000000000000103f9da4ec19a23ec42ca7628975c31b2bc842be7b12a3",
  "difficulty": 0,
  "blocks": 589918,
  "verificationprogress": 100,
  "mediantime": 1565691273,
  "warning": "spruned 0.0.10, emulating bitcoind v0.16",
  "pruned": false,
  "headers": 589918,
  "chain": "main",
  "chainwork": "0000000000000000000000000000000000000000000000000000000000000000"
}
```


Discussion / hints:

Fix patch:
diff --git a/spruned/application/spruned_vo_service.py b/spruned/application/spruned_vo_service.py
index 49a7792..197b496 100644
--- a/spruned/application/spruned_vo_service.py
+++ b/spruned/application/spruned_vo_service.py
@@ -263,7 +263,7 @@ async def getblockchaininfo(self):
             "mediantime": _deserialized_header["timestamp"],
             "verificationprogress": self.p2p.bootstrap_status,
             "pruned": False,
-
+            "initialblockdownload": False
         }
 
     async def gettxout(self, txid: str, index: int):


Test patch:
diff --git a/test/test_application/test_vo_service.py b/test/test_application/test_vo_service.py
index dc5cb99..1038d40 100644
--- a/test/test_application/test_vo_service.py
+++ b/test/test_application/test_vo_service.py
@@ -466,7 +466,8 @@ def test_getblockchaininfo(self):
                 'chainwork': '00' * 32,
                 'mediantime': 1521312803,
                 'verificationprogress': 0,
-                'pruned': False
+                'pruned': False,
+                'initialblockdownload': False
             }
         )