We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c1197a commit 9cd149dCopy full SHA for 9cd149d
pc/manager.cpp
@@ -518,9 +518,15 @@ void manager::reconnect_rpc()
518
clnt_.send( sreq_ );
519
520
// subscribe to program updates
521
- preq_->set_commitment( get_commitment() );
522
- preq_->set_program( get_program_pub_key() );
523
- clnt_.send( preq_ );
+ pub_key *gpub = get_program_pub_key();
+ if ( !gpub ) {
+ set_err_msg( "missing or invalid program public key [" +
524
+ get_program_pub_key_file() + "]" );
525
+ } else {
526
+ preq_->set_commitment( get_commitment() );
527
+ preq_->set_program( gpub );
528
+ clnt_.send( preq_ );
529
+ }
530
531
// gather latest info on mapping accounts
532
for( get_mapping *mptr: mvec_ ) {
0 commit comments