(hash: string)
| 101 | }; |
| 102 | |
| 103 | const assertHash = (hash: string) => { |
| 104 | if (!sharedState.downloadedHash) { |
| 105 | return; |
| 106 | } |
| 107 | if (hash !== sharedState.downloadedHash) { |
| 108 | log(`use downloaded hash ${sharedState.downloadedHash} first`); |
| 109 | return; |
| 110 | } |
| 111 | return true; |
| 112 | }; |
| 113 | |
| 114 | // for China users |
| 115 | export class Pushy { |