Skip to content

Commit c7565b0

Browse files
committed
hack addBlockToHistory (but it still won't work)
1 parent 6cfc2ec commit c7565b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli/src/rpc/modules/ultralight.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ export class ultralight {
7373
async methods() {
7474
return methods
7575
}
76+
77+
// TODO: Remove this endpoint since we require proofs now
7678
async addBlockToHistory(params: [string, string]) {
7779
this.logger(`ultralight_addBlockToHistory request received`)
7880

7981
const [blockHash, rlpHex] = params
8082
try {
81-
await addRLPSerializedBlock(rlpHex, blockHash, this._history!, [])
83+
await addRLPSerializedBlock(rlpHex, blockHash, this._history!, [] as any)
8284
this.logger(`Block ${blockHash} added to content DB`)
8385
return `Block ${blockHash} added to content DB`
8486
} catch (err: any) {

0 commit comments

Comments
 (0)