eos icon indicating copy to clipboard operation
eos copied to clipboard

Unable to update Block Producer information after first register

Open blocksbarcelona opened this issue 8 years ago • 0 comments

How to reproduce: 1- Register BP: ./cleos system regproducer bp_name KEY "" -p bp_name (no URL) 2- Now register again with: ./cleos system regproducer bp_name KEY "http://domain" -p bp_name (no URL) 3- Check BP list: ./cleos get table eosio eosio producers -l 100

URL has not updated. I tried unregistering and registering again but its now workig. Is there another way to update BP info?

I just had a conversation with @kesar and he found the issue:

auto prod = _producers.find( producer );
      if ( prod != _producers.end() ) {
         if( producer_key != prod->producer_key ) {
             _producers.modify( prod, producer, [&]( producer_info& info ){
                  info.producer_key = producer_key;
                  info.is_active    = true;
                  info.url          = url;
                  info.location     = location;
             });
         }
      }

That if( producer_key != prod->producer_key ) should be removed

blocksbarcelona avatar Jun 03 '18 20:06 blocksbarcelona