SHOWING: First 60
);
}
#[test]
fn content_security_policy_with_origin() {
let (headers, _) = Server::content_response(
Inscription::new(Some("text/plain".as_bytes().to_vec()), Some(vec![1, 2, 3])),
AcceptEncoding::default(),
&PageConfig {
csp_origin: Some("https://ordinals.com".into()),
..Default::default()
},
)
.unwrap()
.unwrap();
assert_eq!(headers["content-security-policy"], HeaderValue::from_static("default-src https://ordinals.com/content/ https://ordinals.com/blockheight https://ordinals.com/blockhash https://ordinals.com/blockhash/ https://ordinals.com/blocktime https://ordinals.com/r/ 'unsafe-eval' 'unsafe-inline' data: blob:"));
}
#[test]
fn code_preview() {
let server = TestServer::new_with_regtest();
server.mine_blocks(1);
let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(
1,
0,
0,
inscription("text/javascript", "hello").to_witness(),
)],
..Default::default()#45,003,567text"details, but in short, fees paid by transactions are treated as extra inputs "
"to the coinbase transaction, and are ordered how their corresponding "
"transactions are ordered in the block. The coinbase transaction of the block "
"might look like this:"
msgstr ""
"Así que van al minero que minó el bloque como comisión. [El BIP]"
"(https://github.com/ordinals/ord/blob/master/bip.mediawiki) tiene los "
"detalles, pero, en resumen, las comisiones pagadas por las transacciones "
"se tratan como entradas adicionales a la transacción coinbase y se ordenan "
"según el orden en el que están en el bloque. La transacción coinbase del "
"bloque podría verse así:"
#: src/faq.md:87
msgid ""
"```\n"
"[SUBSIDY] [e f] → [SUBSIDY e f]\n"
"```"
msgstr ""
"```\n"
"[SUBSIDIO] [e f] → [SUBSIDIO e f]"
"```"
#: src/faq.md:89
msgid "Where can I find the nitty-gritty details?"
msgstr "¿Dónde puedo encontrar los detalles técnicos?"
#: src/faq.md:92
msgid "[The BIP!](https://github.com/ordinals/ord/blob/master/bip.mediawiki)"
msgstr "[¡En el BIP!](https://github.com/ordinals/ord/blob/master/bip.mediawiki)"
#44,988,816text"```"
msgstr ""
#: src\guides/testing.md:29
msgid "Get a regtest receive address with:"
msgstr "أنشئ عوان للاستقبال باستخدام الأمر:"
#: src\guides/testing.md:30
msgid ""
"```\n"
"ord -r wallet receive\n"
"```"
msgstr ""
#: src\guides/testing.md:33
msgid "Mine 101 blocks (to unlock the coinbase) with:"
msgstr "إبدا بتعدين البلوكس باستخدام الأمر:"
#: src\guides/testing.md:34
msgid ""
"```\n"
"bitcoin-cli generatetoaddress 101 <receive address>\n"
"```"
msgstr ""
#: src\guides/testing.md:37
msgid "Inscribe in regtest with:"
msgstr "إنسكرايب بوسطه الريغيست باستخدام الأمر:"
#: src\guides/testing.md:38
msgid ""
"```\n"
"ord -r wallet inscribe --fee-rate 1 --file <file>\n"
"```"
msgstr ""
#: src\guides/testing.md:41
msgid "Mine the inscription with:"
msgstr "عدن الإنسكريبشين باستخدام الأمر:"
#: src\guides/testing.md:42
msgid ""
"```\n"
"bitcoin-cli generatetoaddress 1 <receive address>\n"
"```"
msgstr ""
#: src\guides/testing.md:45
msgid "View the inscription in the regtest explorer:"
msgstr "أعرض الإنسكريبشين باستخدام الأمر:"
#44,987,353textmint10.bear#40,028,997brc-20mint10.bear#39,620,978brc-20mint10.bear#39,620,958brc-20mint10.bear#39,620,945brc-20