File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
bcr-ebill-api/src/service/bill_service Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11# 0.3.3
22
3+ * Use Nip-04 as a default for Nostr communication
4+ * Add incoming bill validation
35* Add block data validation
46* Add bill action validation for incoming blocks
57* Add signer verification for incoming blocks
Original file line number Diff line number Diff line change @@ -63,6 +63,6 @@ pub enum Error {
6363 RecourseeNotInContacts ,
6464
6565 /// errors that stem from bill validation errors
66- #[ error( "bill validation error" ) ]
66+ #[ error( "bill validation error {0} " ) ]
6767 Validation ( #[ from] bcr_ebill_core:: ValidationError ) ,
6868}
Original file line number Diff line number Diff line change 11pub const SURREAL_DB_CON_INDXDB_DATA : & str = "indxdb://data" ;
2+ pub const API_VERSION : & str = "0.3.3" ;
Original file line number Diff line number Diff line change 11#![ allow( clippy:: arc_with_non_send_sync) ]
22use bcr_ebill_api:: { Config as ApiConfig , get_db_context, init} ;
3- use constants:: SURREAL_DB_CON_INDXDB_DATA ;
3+ use constants:: { API_VERSION , SURREAL_DB_CON_INDXDB_DATA } ;
44use context:: { Context , get_ctx} ;
55use futures:: { StreamExt , future:: ready} ;
66use gloo_timers:: future:: { IntervalStream , TimeoutFuture } ;
@@ -69,6 +69,7 @@ pub async fn initialize_api(
6969 let db = get_db_context ( & api_config) . await ?;
7070 let keys = db. identity_store . get_or_create_key_pair ( ) . await ?;
7171
72+ info ! ( "Initialized WASM API {}" , API_VERSION ) ;
7273 info ! ( "Local node id: {:?}" , keys. get_public_key( ) ) ;
7374 info ! ( "Local npub: {:?}" , keys. get_nostr_npub( ) ) ;
7475 info ! ( "Local npub as hex: {:?}" , keys. get_nostr_npub_as_hex( ) ) ;
You can’t perform that action at this time.
0 commit comments