Removed pieter wuille quotes

This commit is contained in:
Black Coffee 2022-10-20 14:59:41 +01:00
parent aa040f3a6c
commit 79e98c2f6c
3 changed files with 0 additions and 62 deletions

View file

@ -1,24 +0,0 @@
{
"facts": [
"When a woman asked Pieter Wuille to talk dirty to her, he described the OpenSSL DER implementation.",
"Pieter Wuille recently visited an event horizon and escaped with a cryptographic proof.",
"Pieter Wuille's PhD thesis defence in full: \"Pieter Wuille, thank you\".",
"Pieter Wuille is an acronym for Programmatic Intelligent Encrypted Telemetric Encapsulated Recursive Witness Upscaling Integrated Load-Balancing Logical Entity.",
"Dan Bernstein only trusts one source of random numbers: Pieter Wuille.",
"Putting Pieter Wuille in the title of an r/Bitcoin submission gets more upvotes than the same post from Pieter Wuille himself.",
"Pieter Wuille won the underhanded crypto contest but his entry was so underhanded nobody even knows he entered.",
"Greg Maxwell is a bot created by Pieter Wuille to argue on reddit so he can get code done.",
"Pieter Wuille doesn't need the public key to calculate the corresponding private key.",
"When the Wikipedia servers corrupted all data including backups, Pieter Wuille had to stay awake all night to retype it.",
"It is a Bitcoin consensus rule that when Pieter's hard drive is full no more blocks can be added.",
"When they go out, Pieter Wuille pays for his parents.",
"Pieter Wuille replaced the existing monetary system by writing a few thousand lines of code.",
"Putting Pieter Wuille in the title of an r/Bitcoin submission gets more upvotes than the same post from Pieter Wuille himself.",
"Only Pieter Wuille can name things harder to pronounce than Pieter Wuille.",
"Pieter Wuille doesn't write code, he wills it into existence.",
"If every copy of the blockchain were deleted Pieter Wuille would recreate it from memory.",
"If all else fails, bitcoin should be restarted by syncing the code and the blockchain directly from Wuille's mind.",
"Pieter Wuille codes // Enlightened Zen master floats // Haikus trickle down.",
"Pieter Wuille once wrote a constant time generator for generating constant time cryptographic code."
]
}

View file

@ -191,35 +191,16 @@
></q-toggle>
</q-expansion-item>
<q-expansion-item
expand-separator
icon="celebration"
label="The Fun Stuff"
>
<q-toggle
v-model="toggleStates.fun"
label="Toggle all"
>
<q-tooltip>Toggle all</q-tooltip>
</q-toggle>
<br>
<q-toggle
v-model="formDialog.data.display_preferences.fun_satoshi_quotes"
label="Satoshi Quotes"
>
<q-tooltip>Displays random quotes from Satoshi</q-tooltip>
</q-toggle>
<q-toggle
v-model="formDialog.data.display_preferences.fun_pieter_wuille_facts"
label="Pieter Wuille Facts"
>
<q-tooltip>Show accurate facts about Pieter Wuille</q-tooltip>
</q-toggle>
<q-toggle
v-model="formDialog.data.display_preferences.fun_exchange_market_rate"
label="Current dirty fiat to BTC price"
></q-toggle>
</q-expansion-item>
<q-expansion-item
expand-separator
icon="link"
@ -572,7 +553,6 @@
dashboard: true,
lnbits_wallets_balance: true,
fun_satoshi_quotes: true,
fun_pieter_wuille_facts: true,
fun_exchange_market_rate: true,
onchain_difficulty_epoch_progress: true,
onchain_difficulty_retarget_date: true,

View file

@ -101,13 +101,6 @@ async def api_gerty_satoshi():
else:
return quote
@gerty_ext.get("/api/v1/gerty/pieterwielliequote", status_code=HTTPStatus.OK)
async def api_gerty_wuille():
with open(os.path.join(LNBITS_PATH, 'extensions/gerty/static/pieter_wuille.json')) as fd:
data = json.load(fd)
return data['facts'][random.randint(0, (len(data['facts']) - 1))]
@gerty_ext.get("/api/v1/gerty/{gerty_id}/{p}")
async def api_gerty_json(
gerty_id: str,
@ -186,8 +179,6 @@ async def get_screen_data(screen_num: int, screens_list: dict, gerty):
areas.append(text)
elif screen_slug == "fun_satoshi_quotes":
areas.append(await get_satoshi_quotes())
elif screen_slug == "fun_pieter_wuille_facts":
areas.append(await get_pieter_wuille_fact())
elif screen_slug == "fun_exchange_market_rate":
areas.append(await get_exchange_rate(gerty))
elif screen_slug == "onchain_difficulty_epoch_progress":
@ -284,15 +275,6 @@ async def get_satoshi_quotes():
return text
async def get_pieter_wuille_fact():
text = []
quote = await api_gerty_wuille()
if quote:
text.append(get_text_item_dict(quote, 15))
# text.append(get_text_item_dict("Pieter Wuille facts", 15))
return text
# Get Exchange Value
async def get_exchange_rate(gerty):
text = []